GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Cookies: PHP (https://gfy.com/showthread.php?t=172403)

PigBlimpin' 09-09-2003 05:12 AM

Cookies: PHP
 
What's the time() syntax to set a cookie to expire when the browser is closed?

(is this even possible?)

thx

who 09-09-2003 05:16 AM

Quote:

Originally posted by PigBlimpin'
What's the time() syntax to set a cookie to expire when the browser is closed?

(is this even possible?)

thx

not possible.

PigBlimpin' 09-09-2003 05:16 AM

Quote:

Originally posted by .?.

not possible.

I'd have to do a session for that right?

Nathan 09-09-2003 05:17 AM

pb,

if you want the cookie to expire then you have to NOT set any time!

Thats all you need

PigBlimpin' 09-09-2003 05:18 AM

Quote:

Originally posted by Nathan
pb,

if you want the cookie to expire then you have to NOT set any time!

Thats all you need

Sweet. So, the time() function is just an optional param. Not required. I'll try that. :) Thx!

who 09-09-2003 05:20 AM

Quote:

Originally posted by Nathan
pb,

if you want the cookie to expire then you have to NOT set any time!

Thats all you need

Yes but he's asking how to do it using time parameter...

PigBlimpin' 09-09-2003 05:21 AM

Quote:

Originally posted by .?.
Yes but he's asking how to do it using time parameter...
That works just fine. I just wanted the cookie to expire when the browser closed. I didn't realize that the time() function wasn't required, and could be omitted.

;)


All times are GMT -7. The time now is 05:53 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123