R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Cookies?
Last Post 01 Jan 1900 05:00 AM by . 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
jasonredUser is Offline
New Member
New Member
Posts:17

--
05 Oct 2007 10:19 PM  
Ok do I just understand this wrong or what?
I added a the following actions
0. If '[Action,QueryString]' = 'SetCookie'
1. Assignment: Assign <Cookie> variable 'MyCookie' to 'This is my cookie'.

I created a button to trigger it and the cookie gets set
My problem is if I close my browser and then reopen it the cookie is gone.

So I’m assuming this is a session cookie.
Is there way to retain or store the cookie between browser sessions?
contactdpUser is Offline
Basic Member
Basic Member
Posts:475

--
05 Oct 2007 10:27 PM  
try specifying the cookie expiry explicitly....

ex.
1.Execute Query[ExpDate]: select (cast(day(getdate()) as varchar(2)) + '/' + cast(month(getdate()) as Varchar(2)) +'/'+ cast((year(getdate())+1) as Varchar(4))) as Date
2. Assignment: Assign <Cookie> variable 'MyCookie' to 'This is my cookie'.
3. Assignment: Assign <Cookie> variable 'MyCookie.Expires' to '[Date,ExpDate]'.
Durga Prasad(DP) | Senior Web Engineer<br>R2integrated
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share