Where sessions stored in PHP ?

Member

by braeden , in category: Technology , 4 years ago

Where sessions stored in PHP ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by adolf , 4 years ago

PHP sessions are stored on server generally in text files in a temp directory of server.


That file is not accessible from outside word. When we create a session PHP create a unique session id that is shared by client by creating cookie on clients browser.That session id is sent by client browser to server each time when a request is made and session is identified.

The default session name is “PHPSESSID”.

Related Threads:

How to Create a Composer Package in 2025?
Where is WordPress content stored?
What is difference Between PHP 5 and 7?
What Are the Best Practices for Writing Secure Oracle Sql Queries?
How Often Should You Train with Dumbbells in 2025?
What Is Php Error Handling in 2025?