Re: [PHP] Session handling with cookies??

2001-10-30 Thread Jason G.

Set the expire date to be 0.  then the browser will delete them after the 
browser window is closed.

-Jason Garber
IonZoft.com

At 02:39 PM 10/29/2001 +0100, Andy wrote:
>Hello,
>
>I have developed a member login system with cookies. Now I have the prob,
>that the session stayes existend when the browser is closed. This could
>couse a problem in Internet caffes for example. As second thing, I have
>realized, that it depends on the clients clock!! I am sending a cookie which
>expires in time() + $expireseconds. Unfortunatelly the time command takes
>the tim from the server and the cookie expires checking the client time.
>
>So... does anybody know how...
>
>1) I get the system to delete the cookie as soon as I leave the site, or
>close it
>2) How to work on the same time.
>
>Thanx for any help
>
>
>Cheers Andy
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Session handling with cookies??

2001-10-29 Thread Olexandr Vynnychenko

Hello Andy,

Monday, October 29, 2001, 3:39:51 PM, you wrote:

A> So... does anybody know how...

A> 1) I get the system to delete the cookie as soon as I leave the site, or
A> close it

Use logout with setcookie("name", 0, ...)

A> 2) How to work on the same time.

Pass information about date/time via GET or better POST variable(s).



-- 
Best regards,
 Olexandrmailto:[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Session handling with cookies??

2001-10-29 Thread Andy

Hello,

I have developed a member login system with cookies. Now I have the prob,
that the session stayes existend when the browser is closed. This could
couse a problem in Internet caffes for example. As second thing, I have
realized, that it depends on the clients clock!! I am sending a cookie which
expires in time() + $expireseconds. Unfortunatelly the time command takes
the tim from the server and the cookie expires checking the client time.

So... does anybody know how...

1) I get the system to delete the cookie as soon as I leave the site, or
close it
2) How to work on the same time.

Thanx for any help


Cheers Andy



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]