Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-23-2004, 03:54 AM   #1
Member (7 bit)
 
chris1977uk's Avatar
 
Join Date: Sep 2002
Location: Middlesbrough, UK
Posts: 108
new cookie question

my cookies only seem to live as long as the browser is open, i can go to other sites and back to mine and its fine, as soon as i close the browser and go onto my site, the cookie is clear?

do i need to set a expiry on it, i thought it lived forever by default!!!

any ideas?
chris1977uk is offline   Reply With Quote
Old 03-23-2004, 04:35 AM   #2
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
If you don't set the expiry date of a cookie, the cookie remains as long as the window is open, and is deleted when you close the window.

To solve the problem, set the expiry date of the cookie.
aym is offline   Reply With Quote
Old 03-23-2004, 05:06 AM   #3
Member (7 bit)
 
chris1977uk's Avatar
 
Join Date: Sep 2002
Location: Middlesbrough, UK
Posts: 108
cheers aym

so much for my thoughts lol!!

cheers aym, works like a charm now
chris1977uk is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2