Sessions

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Does anyone know where the session files save to on x10? I tried calling session_save_path() but it shows up blank. Just curious :biggrin:
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
session_save_path() just returns the value of session.save_path, which is empty by default. The default storage location for the file session-handler is the system temporary directory (take a look at PHP_FUNCTION(session_save_path) in session.c and PS_OPEN_FUNC(files) in mod_files.c). session.save_path is mostly (only?) significant for the file session-handler. As that's what the x10 servers use by default (the only other registered session handler is the user handler), "/tmp" is where session data is stored.
 
Last edited:
Top