PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Jul 09, 2020 9:12 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Apr 03, 2005 2:21 pm 
Offline
Forum Commoner
User avatar

Joined: Sat Mar 26, 2005 6:54 pm
Posts: 69
Location: A Canadian South of the 49th Parallel


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 03, 2005 2:31 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: Sun Apr 03, 2005 2:53 pm 
Offline
Forum Commoner
User avatar

Joined: Sat Mar 26, 2005 6:54 pm
Posts: 69
Location: A Canadian South of the 49th Parallel
So, in such a situation, do you feel that my proposed solution is acceptable?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 03, 2005 3:05 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: Sun Apr 03, 2005 3:18 pm 
Offline
Forum Commoner
User avatar

Joined: Sat Mar 26, 2005 6:54 pm
Posts: 69
Location: A Canadian South of the 49th Parallel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 05, 2005 3:44 am 
Offline
DevNet Master
User avatar

Joined: Tue Nov 02, 2004 6:43 am
Posts: 2704
Location: Ireland


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 05, 2005 11:43 am 
Offline
Forum Contributor

Joined: Fri Jul 09, 2004 1:23 am
Posts: 422
The weird part is that I am also using a custom mysql session handler and session_regenerte_id() works just fine and Session State is remained.

Basically a new session_id with all the vars is stored in the mysql table. The old one stays and is destroyed by the garbage collection when it is expired.

Your solution might actually be much better as it immediately changes the session_id and the old one is gone.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 05, 2005 3:15 pm 
Offline
Forum Commoner
User avatar

Joined: Sat Mar 26, 2005 6:54 pm
Posts: 69
Location: A Canadian South of the 49th Parallel
Hmm, what version of PHP do you use? I use 4.3.10 and it fails to maintain session state without doing what I suggested (it doesn't even create a new session row), but maybe it was fixed in later versions of PHP??


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 06, 2005 2:20 am 
Offline
Forum Contributor

Joined: Fri Jul 09, 2004 1:23 am
Posts: 422


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 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:  
cron
Powered by phpBB® Forum Software © phpBB Group