Where sessions stored in PHP ?

Member

braeden

by braeden , in category: Technology , a month ago

Where sessions stored in PHP ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

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