Re: [PHP] Q:Making an 'expired event' for sessions
Mehran Ziadloo wrote: Hi Thanks for replying, There are some settings for sessions in php.ini but I can't find the thing that I'm looking for. It should exist, I mean isn't there any one who needs to know when the session has expired? Once again I ask my question: How to make a session_on_end event in php? Any help will be appreciated. That's not possible. The session is there, or it's not there. You cannot check if it WAS there. Sounds to me like a nice feature though! You can always make your own solution. Like...set a cookie which says that there is a session. If the session is gone, you can check that by checking the cookie and checking for a session. If the cookie states that there is a session, but there is no session, you know that it's gone. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Q:Making an 'expired event' for sessions
Well since I was working with ASP before PHP, there's an event for sessions when they start and when they expire in ASP. Well in PHP I can put an IF statement to check if my variables are set or not for on_start event. But what should I do to have an event for the time they expire? Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
AW: [PHP] Q:Making an 'expired event' for sessions
hi in php.ini you can control behavior of sessions, for example (take a look for you self;) - session.gc_maxlifetime = 1440, in script you you may use ini_set for dynamic control hope this is the right direction .. robert Von: Mehran Ziadloo [mailto:[EMAIL PROTECTED]] Well since I was working with ASP before PHP, there's an event for sessions when they start and when they expire in ASP. Well in PHP I can put an IF statement to check if my variables are set or not for on_start event. But what should I do to have an event for the time they expire? Thanks for your help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Q:Making an 'expired event' for sessions
Hi Thanks for replying, There are some settings for sessions in php.ini but I can't find the thing that I'm looking for. It should exist, I mean isn't there any one who needs to know when the session has expired? Once again I ask my question: How to make a session_on_end event in php? Any help will be appreciated. Robert Mischke [EMAIL PROTECTED] wrote in message 001601c251db$9877c930$6364a8c0@fatalerror">news:001601c251db$9877c930$6364a8c0@fatalerror... hi in php.ini you can control behavior of sessions, for example (take a look for you self;) - session.gc_maxlifetime = 1440, in script you you may use ini_set for dynamic control hope this is the right direction .. robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php