471,075 Members | 988 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

session cookie and presist cookie?

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
--
hello, please help
Mar 7 '06 #1
1 1120
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/

"jerry.xuddd" wrote:
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
--
hello, please help

Mar 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

27 posts views Thread by mrbog | last post: by
4 posts views Thread by Chris | last post: by
5 posts views Thread by ┼×enol Akbulak | last post: by
13 posts views Thread by Goofy | last post: by
4 posts views Thread by rgparkins | last post: by
2 posts views Thread by Gordon Burditt | last post: by
11 posts views Thread by Glenn | last post: by
9 posts views Thread by Josh | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.