Cookies

M

Mr Newbie

I am having trouble writing cookies despite adding the cookie to the
Response.Cookeies collection. The Request.Browser.Cookies returns TRUE so I
know the browser is storing cookies and I can even see like Google cookies
in Documents and Settings/MyName/Cookies however there is never a cookie
saved by the name I create it with.

As well as this, the Request.Cookies.Count is three but in the directory I
just referred to there are hundreds, so Im beginning to wonder where the
hell it thinks its storing the cookies ?

Can anyone help ?
 
M

Mr Newbie

Found it, I had not set the cookie expiration date. I'm having a bad day !

Cheers Anyways.
 
S

sreejith.ram

Are you being able to read those 3 cookie values? if os they are
Non-Persistent cookies.

Cookies could be Persistent or Non-Persistent , only Persistent gets
saved to local folder. Other one stays in browser memory.

Also Request.Cookies.Count would give the count of cookies for your
website, not count of all cookies in client machine

this article may help "Basics of Cookies in ASP.NET"

http://msdn.microsoft.com/library/d...s/dv_vstechart/html/vbtchASPNETCookies101.asp
 
M

Mr Newbie

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top