Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Where do the $_SESSION values get stored in php?

In php do the $_SESSION values get stored in the RAM? and is there a way to configure it?

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2012/09/18
Fadi Alkhateeb
par Fadi Alkhateeb , Senior Front End Developer , NexTwo

saved in [session.save-path]. The file format is so simple, session data is stored in clear text, with ";" as delimiters. If you want to change where session data is stored, you can modify the session.save_path setting in \php\php.ini. Usually its saved on "/tmp"

Satheeshan Pulpail
par Satheeshan Pulpail , CASHIER , CASHIER SANDWICH WRAP

NO CHANGE ALLREADY FILLIN

فاتن بن عبد الله
par فاتن بن عبد الله , سكريتاريه , المجمع الكيميا ئي

The location of the $_SESSION variable storage is determined by PHP's session.save_path configuration. Usually this is /tmp on a Linux/Unix system. Use the phpinfo() function to view your particular settings if not 100% sure by creating a file with this content in the DocumentRoot of your domain: <? phpinfo() ?> Here is the link to the PHP documentation on this configuration setting: http://us.php.net/manual/en/session.configuration.php#ini.session.save-path

حماده احمد ابوزيد
par حماده احمد ابوزيد , Senior Web Developer , Pixel for information technology

The location of the $_SESSION variable storage is determined by PHP's session.save_path configuration. Usually this is /tmp on a Linux/Unix system.

Rani Alomari
par Rani Alomari , Full Stack .Net Developer , Jordan Center for Diseases Control (JCDC)

open php.ini then go to session.save_path then it will be like session.save_path = "C:/DOCUME~1/user/LOCALS~1/Temp" the sessions stored in this file , you can change it

jagadeesh puthukkudi
par jagadeesh puthukkudi , Frontend and backend Developer , QBurst

we can use  $_SESSION['sessio_name]

In Zend Frame work

 

$nameSpaceName = new Zend_Session_Namespace('namesapcename');

$valueIs =  $nameSpaceName->sessionName ; 

 

 

Utilisateur supprimé
par Utilisateur supprimé

On the server.

Utilisateur supprimé
par Utilisateur supprimé

The $_SESSION generally stored on server. Developer can handle $_SESSION storage. By phpinfo() it can be seen where $_SESSION is presently stored by examining session.save_path. and session.save_handler can be used to configure $_SESSION and session_set_save_handler can be used to control how sessions get saved on the server. By default sessions are saved to files.

$_SESSION is one of the 9 super global arrays...it is stored in webserver where  as $_COOKIES stored in web browser

Risitesh Biswal
par Risitesh Biswal , Software Engineer , SpringRole India Pvt Ltd

$_SESSION variable alsways gets stored on the server side

Monika Salvi
par Monika Salvi , Software developer , Faichi Solution PVT ltd

Sessions are used to store value at server side.

A session creates a file in a temporary directory on the server where registered session variables and their values are stored. This data will be available to all pages on the site during that visit.The location of the temporary file is determined by a setting in the php.ini file called session.save_path.

More Questions Like This