Where sessions stored in PHP ?

Member

by braeden , in category: Technology , 3 years ago

Where sessions stored in PHP ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by adolf , 3 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”.