Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Php, session.save_path

Tags:

php

session

I wanted to ask about session.save_path from php.ini file (http://php.net/session.save-path), My question is where is the session is saved if I am not setting any path(;session.save_path =), Is it on my PC memory?, Is it on files that located outside php directory?,So far i see that with session.save_path set, I can view the files, And when session.save_path is unset(http://php.net/session.save-path), I don't know where the files if there is any, If anyone can help me i will be very thankful, Thank you all and have a nice day.

like image 243
Aviel Fedida Avatar asked Jul 04 '26 06:07

Aviel Fedida


1 Answers

phpinfo() is your friend here, in the output you'll find the original (left column) and overridden (right column) session.save_path.

like image 94
huysentruitw Avatar answered Jul 06 '26 20:07

huysentruitw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!