session_name() function is it safe?

Hello,
I heard that session_name() function posed security problems.
Is it really a reality?
If so, why?

Thank you