2, December 2008

strange sessions, getting more and more but not getting cleared - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: strange sessions, getting more and more but not getting cleared
« previous next »
Pages: [1] Print

Author Topic: strange sessions, getting more and more but not getting cleared  (Read 927 times)
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« on: May 25, 2007, 06:00:34 PM »

In relation to the session_handler and the session Starter function (start_session) I noticed some strange behavior as it seem to me. I'm even not sure where to include the session Starter. I've put it on top of session_handler.php instead of session_start().

Now the strange things:
- a session starts (without ses_value) even if the user has put the wrong password.
- if a user session was killed in the session table and the user logout a full user session will be created including ses_vallue.
- if a session with session_start() as usual is called in session_handler.php a cookie will be created and the session will never end.
- if a session with start_session() and the start_session fuction is called in session_handler.php a cookie will be created and the session  end at the defined session.gc_maxlifetime in php.ini.
- in that case if the user is loged out automaticaly one more session is created and is cleared not automaticly as I can see. If a user log out and in like this more and more sessions are created but not cleared.

Is that a fault of my usage of the session starter and the session_handler?
Do you notice the same things?
If that is only in my case asI described how do I use the session_handler and the session Starter correctly.
« Last Edit: May 25, 2007, 07:17:21 PM by tomz »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6479
39706 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: May 25, 2007, 07:34:58 PM »

maybe you shpuld read the manual about the sessions to understand more how it works, most of your questions are not related to this class


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Posts: 57
394 credits
Members referred : 0


« Reply #2 on: May 25, 2007, 07:46:08 PM »

maybe you shpuld read the manual about the sessions to understand more how it works, most of your questions are not related to this class
I've read the manual about this class but my question was if you can notice the same and how the session Starter to include correctly. Maybe someone has an example.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6619
Tags : session_handler session Starter Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: strange sessions, getting more and more but not getting cleared
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 02, 2008, 08:21:23 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.937
Total Topics: 7.679
Total Members: 4.444
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Naviator

26 Guests, 4 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.