Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Forums
Blogs
Articles
Groups
Galleries
Member List
Calendar
Home
Forum
Simply Business
Fucking Around & Business Discussion
Cookies: PHP
Cookies: PHP
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
PigBlimpin'
Registered User
Join Date:
Sep 2003
Posts:
85
Share
Post
#1
Cookies: PHP
09-09-2003, 04:12 AM
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.
who
So Fucking Banned
Join Date:
Aug 2003
Posts:
19593
Share
Post
#2
09-09-2003, 04:16 AM
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.
Comment
Post
Cancel
PigBlimpin'
Registered User
Join Date:
Sep 2003
Posts:
85
Share
Post
#3
09-09-2003, 04:16 AM
Originally posted by .?.
not possible.
I'd have to do a session for that right?
Pig Blimpin'... spendin' cheeze.
Comment
Post
Cancel
Nathan
Confirmed User
Join Date:
Jul 2003
Posts:
3108
Share
Post
#4
09-09-2003, 04:17 AM
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
Comment
Post
Cancel
PigBlimpin'
Registered User
Join Date:
Sep 2003
Posts:
85
Share
Post
#5
09-09-2003, 04:18 AM
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.
Comment
Post
Cancel
who
So Fucking Banned
Join Date:
Aug 2003
Posts:
19593
Share
Post
#6
09-09-2003, 04:20 AM
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...
Comment
Post
Cancel
PigBlimpin'
Registered User
Join Date:
Sep 2003
Posts:
85
Share
Post
#7
09-09-2003, 04:21 AM
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.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment