RE: [PHP] SESSION's from common computers
| From: | John Holmes | Date: | Sat, 29 Jun 2002 05:35:59 +0000 |
| Subject: | RE: [PHP] SESSION's from common computers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104467@lists.php.net to get a copy of this message | ||
You really can't do anything besides saying that after X minutes, well,
you were idle, so restart your session. Once you send them the page, you
don't know if they are reading it or have left the table. All you can do
is decide on the next request whether too much time has passed.
As for the new computer, they'll have to start a new session there
automatically, because they won't have the same cookie matching the
session ID from the first computer.
---John Holmes...
> -----Original Message-----
> From: César Aracena [mailto:icaam@icaam.com.ar]
> Sent: Saturday, June 29, 2002 1:24 AM
> To: PHP General List
> Subject: [PHP] SESSION's from common computers
>
> Hi all.
>
> I have a question about sessions
which is the best way to close a
> session if one its opened for a certain user and then this user
changes
> to another computer? I guess that I could manage with
session_start_time
> and session_end_time fields in the DB, and tell the script to see if
the
> opened session hasnt been closed
then close it and open a new one.
>
> Does this make any sense? Is there a better way to do this? I want to
> know this because many users actually use cyber-coffees computers to
> access web sites and Ive seen them leaving their chair with the
windows
> still opened and changing to another pc.
>
> Thanks in advance,
>
> <mailto:webmaster@icaam.com.ar> Cesar Aracena
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
>