June 28th, 2000, 03:15 PM
do I need to call session_start()
on every page? and session_register("SESSION")
to keep the variable session?
when i've tried putting session_start() on any page...when i hit the back button it gives me an expired error
June 29th, 2000, 04:34 PM
Yes you do... I stopped using sessions because of people complaining about the expired errors.
June 30th, 2000, 03:58 AM
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Anti:
Yes you do... I stopped using sessions because of people complaining about the expired errors.[/quote]
I'm not sure what is the cause of this behavior because i didn't test it.
You should check in [session] section of php.ini file to see if
variable "session.cookie_lifetime" is set to 0.
You can see there the reason of this value.