Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > forms authentication cookie changes

Reply
Thread Tools

forms authentication cookie changes

 
 
Andy Fish
Guest
Posts: n/a
 
      07-21-2005
Hi all,

For reasons I would rather not go into, I sometimes need to get the value of
the forms authentication cookie and use it later when submitting another
request to the server.

mostly this works fine but sometimes it seems that the server decides to
change the forms authentication cookie (in contrast to the session cookie
which stays the same the whole time the session is in existence).

note that this is not happening because the authentication timeout has
expired. I am still logged on as the same user and have the same session;
it's just that the cookie value has changed.

Can anyone explain why and how this happens, and if there is any way I can
control (or disable) this behaviour?

TIA

Andy




 
Reply With Quote
 
 
 
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      07-21-2005
Hello Andy,

FormsAuth issues a new cookie after timeout/2. That's the behaviour when
you have sliding expiration enabled.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Hi all,
>
> For reasons I would rather not go into, I sometimes need to get the
> value of the forms authentication cookie and use it later when
> submitting another request to the server.
>
> mostly this works fine but sometimes it seems that the server decides
> to change the forms authentication cookie (in contrast to the session
> cookie which stays the same the whole time the session is in
> existence).
>
> note that this is not happening because the authentication timeout has
> expired. I am still logged on as the same user and have the same
> session; it's just that the cookie value has changed.
>
> Can anyone explain why and how this happens, and if there is any way I
> can control (or disable) this behaviour?
>
> TIA
>
> Andy
>




 
Reply With Quote
 
 
 
 
Andy Fish
Guest
Posts: n/a
 
      07-22-2005
Thanks Dominick.

I knew it re-sent the cookie after half the timeout but I didn't realise it
would generate a new one.

"Dominick Baier [DevelopMentor]" <>
wrote in message news:.. .
> Hello Andy,
>
> FormsAuth issues a new cookie after timeout/2. That's the behaviour when
> you have sliding expiration enabled.
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
>> Hi all,
>>
>> For reasons I would rather not go into, I sometimes need to get the
>> value of the forms authentication cookie and use it later when
>> submitting another request to the server.
>>
>> mostly this works fine but sometimes it seems that the server decides
>> to change the forms authentication cookie (in contrast to the session
>> cookie which stays the same the whole time the session is in
>> existence).
>>
>> note that this is not happening because the authentication timeout has
>> expired. I am still logged on as the same user and have the same
>> session; it's just that the cookie value has changed.
>>
>> Can anyone explain why and how this happens, and if there is any way I
>> can control (or disable) this behaviour?
>>
>> TIA
>>
>> Andy
>>

>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Best practices for using forms authentication and security in a hosted env (was: Re: Using a Forms authentication in a shared hosting environment) JEFF ASP .Net 1 11-12-2007 07:00 PM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
Forms Authentication and Authentication Cookie rgouge ASP .Net Security 3 06-20-2005 10:09 PM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM
authentication cookie vs session cookie Joseph ASP .Net Security 4 08-12-2003 10:57 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57