Hi all,
I have tried to search this topic, there were similar entries but I can't find the solution.
Every time I call session_start() on a page (without restarting browser or anything), a new session keeps on getting created. This is really weird. And now I can't use session variables since every time I try to call this function I am in a new session! Filesystem and path permissions are all alright, I just keep on seeing sess_* files getting created for refreshing the same page! I am running PHP 4.3.9, and the settings for session are:
Directive Local Value Master Value
session.auto_start Off Off
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_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file /dev/urandom /dev/urandom
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
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 Off Off
From my phpinfo();
Anyone knows how to diagnose this problem? Thanks.