joeisbatman
Programmer
What POSSIBLE SCENARIO makes the session_id() function return null????
I have a website where <i>SOMETIMES</i> when you visit the main page, your session_id() is blank. This causes a problem, for it means that session_start() is not maintaining the session for subsequent pages.
The problem is fixed MOST OF THE TIME by just closing the browser and going back to the page. Any ideas on how I can avoid this????
Here is my php.ini settings for SESSIONS:
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 2880
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
I have a website where <i>SOMETIMES</i> when you visit the main page, your session_id() is blank. This causes a problem, for it means that session_start() is not maintaining the session for subsequent pages.
The problem is fixed MOST OF THE TIME by just closing the browser and going back to the page. Any ideas on how I can avoid this????
Here is my php.ini settings for SESSIONS:
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 2880
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1