ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2012/09/18
Fadi Alkhateeb
من قبل 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
من قبل Satheeshan Pulpail , CASHIER , CASHIER SANDWICH WRAP

NO CHANGE ALLREADY FILLIN

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

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

حماده احمد ابوزيد
من قبل حماده احمد ابوزيد , 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
من قبل 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
من قبل 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 ; 

 

 

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.

Ferhan kv
من قبل Ferhan kv

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

Risitesh Biswal
من قبل Risitesh Biswal , Software Engineer , SpringRole India Pvt Ltd

$_SESSION variable alsways gets stored on the server side

Monika Salvi
من قبل 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.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟