Re: How can I judge a sessionid is being used or not?
| From: | Johannes Janson | Date: | Fri, 06 Apr 2001 21:14:52 +0000 |
| Subject: | Re: How can I judge a sessionid is being used or not? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6555@lists.php.net to get a copy of this message | ||
Hi,
why do you want to tore it in a table. You create the session
to store variables in it. There is no use in storing it in a
table since the $PHPSESSID changes every time you visit the page
anew.
Johannes
"yanshuldg" <yanshuldg@etang.com> schrieb im Newsbeitrag
news:20010406013354.CE63F1CB32D6A@mail.etang.com...
> I mean that I have a onlineuser table,which contains two columns,
> sessionid and username.
> When the user is online,I insert his sessionid(created by php) and
username into the sessionid table,and I want to delete the record when the
user is offline,That's:
> How can I judge a sessionid is being used or not?
> or:How can I judge a user is online or not by his sessionid?
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>