[PHP] Re: Session time out

2005-03-17 Thread Jacques
Is session time measured in seconds or minutes?

Regards

Jacques


Jacques [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 What is the life time of a PHP session object (variable)?  Which 
 conditional test can I perform to check if the session object has timed 
 out?

 Jacques 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Session time out

2005-03-17 Thread Jason Barnett
Jacques wrote:
 Is session time measured in seconds or minutes?


seconds

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHPsubmitform=Find+search+plugins


signature.asc
Description: OpenPGP digital signature


[PHP] Re: Session Time

2003-02-10 Thread Bobby Patel
What you could do, is get the current time stamp using time() or date() and
create a sesion variable with this value, when they login (and the session
is created.  Then when they logout, and the sesion is destoyed get the
current time stamp again and minus it from the start time.

Note: This requires the user to login and logout, if they just close the
browser then they will never get to your logour script, thus you can't
calculate their money owed.

Stephen Craton [EMAIL PROTECTED] wrote in message
004e01c2d11a$0e3a4590$0200a8c0@melchior">news:004e01c2d11a$0e3a4590$0200a8c0@melchior...
 Got a quick and easy question that I'm not sure about. What I need to do
is
 calculate how long someone has been in a chatroom, then update a members
 table to add some money to their account. Something like this:

 For every hour they're in the chatroom: 5 cents

 Thanks,
 Stephen Craton
 http://www.melchior.us





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php