Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-09-2003, 05:12 AM   #1
PigBlimpin'
Registered User
 
Join Date: Sep 2003
Location: Spendin' da Cheese!
Posts: 85
Cookies: PHP

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

(is this even possible?)

thx
__________________
Pig Blimpin'... spendin' cheeze.
PigBlimpin' is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-09-2003, 05:16 AM   #2
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
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.
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-09-2003, 05:16 AM   #3
PigBlimpin'
Registered User
 
Join Date: Sep 2003
Location: Spendin' da Cheese!
Posts: 85
Quote:
Originally posted by .?.

not possible.
I'd have to do a session for that right?
__________________
Pig Blimpin'... spendin' cheeze.
PigBlimpin' is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-09-2003, 05:17 AM   #4
Nathan
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 3,108
pb,

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

Thats all you need
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie Munger
Nathan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-09-2003, 05:18 AM   #5
PigBlimpin'
Registered User
 
Join Date: Sep 2003
Location: Spendin' da Cheese!
Posts: 85
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!
__________________
Pig Blimpin'... spendin' cheeze.
PigBlimpin' is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-09-2003, 05:20 AM   #6
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
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...
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-09-2003, 05:21 AM   #7
PigBlimpin'
Registered User
 
Join Date: Sep 2003
Location: Spendin' da Cheese!
Posts: 85
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.

;)
__________________
Pig Blimpin'... spendin' cheeze.
PigBlimpin' is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.