rashmi_k28 Posted June 20, 2008 Share Posted June 20, 2008 Hi, I am using linux and /var/lib/php/session folder is empty. When I use the code session_start(); $xpoint = explode("%",$_SESSION["cx"]); session_destroy(); But still session folder is empty. Permission drwxrwx--- for the session folder. In php.ini file these configuration is set. ssion Support enabled Registered save handlers files user sqlite Registered serializer handlers php php_binary wddx Directive Local Value Master Value session.auto_start On On session.bug_compat_42 Off Off session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /var/lib/php/session /var/lib/php/session session.serialize_handler php php session.use_cookies On On session.use_only_cookies Off Off session.use_trans_sid 0 0 Same configuration works on the difference machine. Link to comment https://forums.phpfreaks.com/topic/111061-sessions/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 20, 2008 Share Posted June 20, 2008 session_destroy() deletes the current session data file. If you have a system where there are other files in the /var/lib/php/session folder, then they are left over from other sessions and they are not the result of the code you posted. What exactly are you trying to accomplish or what problem are you having that you are trying to solve? Link to comment https://forums.phpfreaks.com/topic/111061-sessions/#findComment-570105 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.