tomz
Wed 23 May 2007, 06:35 pm GMT +0200
you are right. It was nessesary to include the session_handler at the top of the new file. Now it working very well.
I'm still a bit confused because if a file is using some Access_User functions then it would need to have the include(access_user_class) at the top of the file. And Access_User should include session_handler.php
Anyway, glad its working.
Mike
I was to fast enjoying the logout after I had put the include a second time (first access_user) in the called file but after I did this I could not log in anymore ...
Now I will descripe what the session class is doing in my case:
If i log in it create a table row with this 4 values:
- ses_id, ses_time, ses_start , ses_value
- ses_time grows up every time when I execute a script.
- ses_value disapears after a user did a logout but the other values still stay there.
- If the same user or an other user with the same browser and the stored PHPSESSID cookie log in again it uses the same ses_id and creates an new value for ses_value.
The session class is called on top of access_user.class.
What not works is that a user is not logout automaticly after doing nothing.For testing I've set this in php.ini
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 30
Whith this settings I think the sleeping user should be logout by killing the session after 30 seconds. I've even tried to use the session starter (Cross-Browser Session Starter ver. 1.00 ) instead of calling session_start() I call the function start_session() on to of the session class but even there is no effect, the user is loged in for ever.
Is that descriped session behavior ok, usual?
What could be the reason that the user is not logout after 30 sek?