Me.Context.Request.Cookies value doesn"t match what"s in cookies file

Me.Context.Request.Cookies value doesn"t match what"s in cookies file

am 28.12.2007 21:03:33 von eric.goforth

Hello,

My ASP.NET 2.0 / Classic ASP app is using cookies, and I'm trying to
figure out a why I'm not seeing a cookie value being initialized in my
ASP.NET side. I'm using IE 7 and running my app locally using IIS 5.1/
Win XP Pro SP2, I deleted my cookie file and then was trying to test
some changes that I'd made to my app to try to recover from this type
of situation.

However, when I look at my cookies in IECookiesView 1.70 or if I go to
C:\Documents and Settings\username\Cookies and look inside the
cookies, the cookie looks quite different than what I see if I use
Me.Context.Request.Cookies or if I use the IE Developer toolbar, it's
kind of like the parable about a man who has two watches never knowing
the correct time.

My cookies have crumbs so in the IE developer toolbar or using
Me.Context.Request.Cookies.Value, I see something like the following
which came from IE developer toolbar:

APP%5FTHMLastLoginOrg=1234 value>At the end of the Sessionlocalhost domain>/

This cookie only has one crumb, it should have more.

However, if I use the IECookiesView 1.70 or if I go to C:\Documents
and Settings\username\Cookies and look inside the cookie file for
localhost I see something like:

APP%5FTHM name>LastLoginOrg=abcd&ThmId=5&ThmClr=3At the
end of the Session
localhost/ cookie>.

Note that there are a lot more crumbs here, and the value of
LastLoginOrg is different.

Could the cookie values that IE7 has in memory be different from what
is on the disk? That would seem to defeat the whole point of using
cookies.

-Eric

Re: Me.Context.Request.Cookies value doesn"t match what"s in cookies file

am 28.12.2007 22:02:20 von Mark Fitzpatrick

I've seen a lot of instances where, unless you explicitely set an expiration
date for the cookie that is more than 20 minutes or so, then it is never
actually written to disk and is only stored in memory until the browser
instance is closed. Play with setting some explicit timeouts on the cookie
and see what happens with the file.


--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Eric" wrote in message
news:92cda831-bf2a-4520-93df-3569bcd6f1ba@f3g2000hsg.googleg roups.com...
> Hello,
>
> My ASP.NET 2.0 / Classic ASP app is using cookies, and I'm trying to
> figure out a why I'm not seeing a cookie value being initialized in my
> ASP.NET side. I'm using IE 7 and running my app locally using IIS 5.1/
> Win XP Pro SP2, I deleted my cookie file and then was trying to test
> some changes that I'd made to my app to try to recover from this type
> of situation.
>
> However, when I look at my cookies in IECookiesView 1.70 or if I go to
> C:\Documents and Settings\username\Cookies and look inside the
> cookies, the cookie looks quite different than what I see if I use
> Me.Context.Request.Cookies or if I use the IE Developer toolbar, it's
> kind of like the parable about a man who has two watches never knowing
> the correct time.
>
> My cookies have crumbs so in the IE developer toolbar or using
> Me.Context.Request.Cookies.Value, I see something like the following
> which came from IE developer toolbar:
>
> APP%5FTHMLastLoginOrg=1234 > value>At the end of the Sessionlocalhost > domain>/
>
> This cookie only has one crumb, it should have more.
>
> However, if I use the IECookiesView 1.70 or if I go to C:\Documents
> and Settings\username\Cookies and look inside the cookie file for
> localhost I see something like:
>
> APP%5FTHM > name>LastLoginOrg=abcd&ThmId=5&ThmClr=3At the
> end of the Session
localhost/ > cookie>.
>
> Note that there are a lot more crumbs here, and the value of
> LastLoginOrg is different.
>
> Could the cookie values that IE7 has in memory be different from what
> is on the disk? That would seem to defeat the whole point of using
> cookies.
>
> -Eric