Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: six minus four?
(Example: nine)

The Note You're Voting On

Hongliang Qiang
21 years ago
This may sound no-brainer: the session_name() function will have no essential effect if you set session.auto_start to "true" in php.ini . And the obvious explanation is the session already started thus cannot be altered before the session_name() function--wherever it is in the script--is executed, same reason session_name needs to be called before session_start() as documented.

I know it is really not a big deal. But I had a quite hard time before figuring this out, and hope it might be helpful to someone like me.

<< Back to user notes page

To Top