Home > Archive > PHP DB > April 2004 > Session
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Ng Hwee Hwee 2004-04-27, 4:50 am |
| Hi,
I have a problem with my session variables. I set them using for e.g., $_SESSION["user"]=$name;
However, because of weak network links, somehow my $_SESSION variables get unset. Is there a way to still keep the session variables even though the network is unstable?? i.e. as long as my browser is open, is there a way to still store my session variables? by the way, i'm not referring to the session ids, I'm referring to the variables that i wanted to session_register().
Thank you.
Regards,
Hwee
| |
|
|
Hi,
Regarding the recent thread on sessions.
If you want cookies to expire after the user leaves
the sie or closes the browser do not leave the expiry
date emty. 9 times out of 10 the cookie will remain.
All you need to do is set a date that has passed.
Like 1st Jan 2000. Most set it way back to 1980
because some people reset their dates and what not for
Program hijacking etc. So 1980 is a good limit. You
can use any date passed and it will expire, any future
date it won't expire until the date has been
reached/passed.
Regarding using $ variables. I have seen on some
servers you can easily use $"the vairable" but some
servers don't like the user of $ . I have never seen
an explaination to why this occours, so thought I'd
mention it. If the session is unset 9 out of 10 times
the $ may be a problem on your server and you will
need to look at alternative methods.
J
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
|
|
|
|
|