What happens when changing the name of the cookie PHPSESSID?

What is the best practice for the PHPSESSID cookie name? Symfony2 allows you to change this using configuration, and you can also change it in php.ini session.name.

Why do you need this?

+5
source share
2 answers

It allows you to run multiple applications on the same site, each of which needs its own cookies in order to perpetuate the session identifier. Of course, the same could be done by setting the correct cookie path and / or cookie domain .

Another reason may be that you want to hide the fact that you are using PHP, and the name PHPSESSID is pretty revealing.

; - - , .

+10

" ". HTTP , -, , , cookie ( ) - .

-, . .

+3

All Articles