Home » Php » php – How to rename PHPSESSID?

php – How to rename PHPSESSID?

Posted by: admin April 23, 2020 Leave a comment


Wondering how I can change the php session id from PHPSESSID to something else so that it does not interfere with other PHP scripts running on the same domain. Is this possible?

Thank you for your time

How to&Answers:

See this link for PHP runtime configuration. The variable you are looking for is session.name. You can also alter this programmatically by calling session_name before any call to session_start or session_register.



Try looking at PHP’s reference.