If values ​​are saved in sessions

 $_session['user_id']=4;

Where are these session values ​​stored .. means in some kind of file? Where??

+3
source share
4 answers

Yes, they are stored in a temporary file somewhere on the server on which your site is located. You can specify this parameter in php.ini with session.save_path.

You can also use the function session_save_pathto set and get the session path from the script.

Syntax:

string session_save_path ([ string $path ] )

session_save_path - Get and / or set the current session save path

+2
source

Isn't that in the temporary file in session.save_path, no matter what is installed?

You can also find the answer you want in more detail here .

+2
source

, php , cookie .

0

PHP . php.ini session.save_path.

0

Source: https://habr.com/ru/post/1743825/


All Articles