PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Jun 03, 2020 8:33 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Mon Feb 07, 2005 1:55 pm 
Offline
Forum Commoner

Joined: Thu Jan 27, 2005 4:06 pm
Posts: 30
Location: NJ


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 2:03 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 2:09 pm 
Offline
Forum Commoner

Joined: Thu Jan 27, 2005 4:06 pm
Posts: 30
Location: NJ
** UPDATE **

Actually, each time I visit the page the cookie gets reset to another 15 mins??



As far as the cookie being as expected.. it's just the session cookie generated by PHP. It's not a cookie I've written manually.
Using Firefox I am able to view the cookie it's contents just fine. What I can see is that the cookie shows up and has an expire time of 15 mins (900 secs) beyond the login time. Once that time is met and I check the cookie again, the time is reset to another 15mins?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 2:11 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
if you refresh the page, or any page/request that uses the session, the time to expire will refresh, provided the session cookie is passed to the server.. which is entirely up to the browser.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 2:13 pm 
Offline
Forum Commoner

Joined: Thu Jan 27, 2005 4:06 pm
Posts: 30
Location: NJ
HHMM...

So what is the most effective way to expire a session?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 2:16 pm 
Offline
Forum Commoner

Joined: Thu Jan 27, 2005 4:06 pm
Posts: 30
Location: NJ
Well, so actually, as long as a user is active they remain logged in because the session keeps an "idle" timer..sort of speak.
So, if someone gets the page and leaves it for the 15 mins and attemps to return, they will be required to login again? Right?
Now, if they login leave the page, and request that secure page again before the 15 mins..they will still be granted access?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 2:22 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
provided their browser did not delete the cookie when they left, it should still work, yes.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 3:33 pm 
Offline
Forum Commoner

Joined: Thu Jan 27, 2005 4:06 pm
Posts: 30
Location: NJ


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group