Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #2 on: Jun 06, 2006, 03:52:09 pm »
There are only new session id's for new windows if they are opend f.e. via the shortcut on your desktop. If you navigate through a link (tartget=blank) then the same ID is used. Is this a problem for IE users?
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #3 on: Jun 06, 2006, 03:58:33 pm »
I am not sure this is happening.
At least I have used sites with new window links that kept the session.
At least I have used sites with new window links that kept the session.
This is what I say a link opened in a new window is OK but if you open a new window bij clicking the blue E and entering the same website via the address bar it goed wrong.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #5 on: Jun 06, 2006, 04:11:52 pm »
Oh, I see.
The only thing you can do about that is managing sessions with cookies (I mean with real cookies, as sessions as using cookies anyway)
For some reason IE is really sensitive to cookie times. It won't even accept the cookie!! This took me quite a while to figureout, for I thoguht it was an IE cookie security issue.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #7 on: Jun 06, 2006, 04:19:23 pm »
Regarding sessions, it keeps cookies only for the current browser session.
To make it keep the cookie you have to use the cookie functions without using session ( session_start )
You can set the expiriation time of the cookie on every page load. This way it will work like a normal session.
you say I have to use f.e. the this value "gc_maxlifetime" in every page? this way each session and phpsessid has the same experation time? and if someone has logged out I have to set a negative value to the cookie?
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #18 on: Jun 06, 2006, 04:59:20 pm »
No. The gc_lifetime is a general attribute. Not for the specific cookie.
I think what you need here is to set_cookie again in every pageview.
If the user log out you can destroy the cookie(eg. setcookie ('XXX', "", time() - 3600) ).