PC Review


Reply
Thread Tools Rate Thread

Cookie mysteriously loses value!

 
 
daz_oldham
Guest
Posts: n/a
 
      27th Jul 2006
Hi All

I have been working fine on my project, and now all of a sudden one of
my cookies is losing its value for no reason at all.

I am doing my get/set in the following way:

Response.Cookies["Flight"]["SearchCriteriaID"]
Request.Cookies["Flight"]["SearchCriteriaID"]

I have gone through my code several times, but cant spot what I am
doing wrong. Does anybody have any pointers?

Thanks

Darren

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      27th Jul 2006
If you do not set an expiration time on your cookie, it will be an
"in-memory" only cookie.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"daz_oldham" wrote:

> Hi All
>
> I have been working fine on my project, and now all of a sudden one of
> my cookies is losing its value for no reason at all.
>
> I am doing my get/set in the following way:
>
> Response.Cookies["Flight"]["SearchCriteriaID"]
> Request.Cookies["Flight"]["SearchCriteriaID"]
>
> I have gone through my code several times, but cant spot what I am
> doing wrong. Does anybody have any pointers?
>
> Thanks
>
> Darren
>
>

 
Reply With Quote
 
daz_oldham
Guest
Posts: n/a
 
      27th Jul 2006
Hi Peter

And I presume that as with ASP, the cookie will live for the length of
the session - which is exactly what I want to do.

Is there any issues between in-memory cookies and different
sub-directories?

I really can't understand why some of my cookies are keeping their
values, and others aren't. I've got around eight cookies.

Thanks for the assistance.

Darren

Peter wrote:

> If you do not set an expiration time on your cookie, it will be an
> "in-memory" only cookie.
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "daz_oldham" wrote:
>
> > Hi All
> >
> > I have been working fine on my project, and now all of a sudden one of
> > my cookies is losing its value for no reason at all.
> >
> > I am doing my get/set in the following way:
> >
> > Response.Cookies["Flight"]["SearchCriteriaID"]
> > Request.Cookies["Flight"]["SearchCriteriaID"]
> >
> > I have gone through my code several times, but cant spot what I am
> > doing wrong. Does anybody have any pointers?
> >
> > Thanks
> >
> > Darren
> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cookie contanier does not correctly parse Set-Cookie header with domain token dav Microsoft Dot NET Framework 2 15th Dec 2010 08:55 AM
Linksys BEFSR41 mysteriously loses its memory? Phil Cartwright Windows Networking 0 31st Jan 2008 07:13 PM
cookie contanier does not correctly parse set cookie header with domain token dav Microsoft Dot NET Framework 0 12th Aug 2007 09:06 AM
Any downsides to cookie assignment inside custom class using HttpContext.Current? ASP.NET 2.0 cookie fix? Microsoft ASP .NET 2 17th Aug 2005 07:43 AM
Transient-Cookie/Session-Cookie and multiple browser instances X Windows XP Internet Explorer 7 29th Apr 2004 11:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:51 AM.