Are $_SESSION variables stored on the client or the server?
Are $_SESSION variables stored on the client or the server?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The location of the
$_SESSIONvariable storage is determined by PHP’ssession.save_pathconfiguration. Usually this is/tmpon a Linux/Unix system. Use thephpinfo()function to view your particular settings if not 100% sure by creating a file with this content in theDocumentRootof your domain:Here is the link to the PHP documentation on this configuration setting:
http://php.net/manual/en/session.configuration.php#ini.session.save-path