Where will the session value be stored in PHP

Where will the session value be stored in PHP.

For example, cookies will be stored in the browser, as well as where the session value will be indicated.

thanks in advance...

+3
source share
5 answers

By default, session values ​​are stored on the file system in the PHP directory (at least on windows). You can find the default session location using the session_save_path function .

You can write your own session handlers to save session data to another location, such as a database. Take a look at session_set_save_handler for more information.

+5

PHP . PHP cookie ID , . , , cookie. PHP , cookie . URL- -.

PHP Manual Site.
PDF , , , -.

, .

+2

/tmp Unix.

+1

php.ini session.save_path

/tmp,

0

You can set the save path yourself using session_save_path .

0
source

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


All Articles