session cookie and presist cookie?

G

Guest

Hi,

I tried to use HttpCookie in my code and it seems that by default it is a
session cookie (dispear after user close the browser). Can someone tell me
how to create a presist cookie? Also where are the session cookie stored? I
searched under temp Internet folder and cookie folder, but I can not find it.

Many Thanks

Jerry
 
G

Guest

You can create a persistent cookie by setting the Expires property to
DateTime.MaxValue. You may just want the expires to be something like 3
months or a year. I am not sure where the session cookie is stored. It most
likely is not stored where other cookies are stored. May be stored in memory.

HTH,
Darren Kopp
http://blog.secudocs.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top