php - Is there any way to determine the *actual* session save path? -
i know there half dozen ways value of session.save_path
directive (phpinfo()
, session_save_path()
, etc.), when value empty string, default, actual path can of several locations. i've read it's /tmp
, except when it's /var/lib/php5
, on os x mountain lion it's /private/var/tmp
. on windows, it's c:\windows\temp
, knows.
i specify location, won't me. i'm trying diagnose tricky problem , know current location on server don't have full access to. if there's right way it, haven't been able find it. i'm open clever hacks.
i have not reviewed php source code confirm this, looks when session.save_path
empty, php uses value of sys_get_temp_dir()
(which varies user).
Comments
Post a Comment