Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookies...losing with close of session

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello All,

I'm having trouble getting my cookie to stay beyond the current session.

I've looked at my books...but, can't seem to see the problem.

Any suggestions.

Thanks,

Rob
 
you can set the expiration date while creating the cookie, but also in the cfapplication tag, and in the cfadmin as well ... did you check these 3 ??
if you did and if it's still not working, i'm afraid i can't help ... hopefully someone else might !!!!
and you still can try to perform a search in this forum, using "cookie expiration" as a keyword, i bet you'll get some interesting threads !
 
Here is a little app you may want to take a look at.

It does a few interesting things with Session variables/cookies. One of which is it "writes" the cookies manually (instead of letting CF do it).

 
Nice one CFHUB :). RTShort911, CF cookies will expire when the session ends, unless you specify that the cookie should never expire. If you want the cookies to last use the following code:

<cfcookie name=&quot;MyCookie&quot; value=&quot;Brownie&quot; expires=&quot;NEVER&quot;>

Hope this helps...


<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top