Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Handle end session for win authentication

Reply
Thread Tools

Handle end session for win authentication

 
 
=?Utf-8?B?TmF5?=
Guest
Posts: n/a
 
      04-03-2005
Hi
When we use forms authentication I set the time and a url for login page
after configured amount of time, via web.config.
But, what is the best practice to do it after configurable amount of time,
or after session end when it is a windows authentication

 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-03-2005
First thing to understand is that the forms authentication mechanism uses
a different cookie than session state. So those have two independent timeouts.
So regardless if you're using Forms or Windows authentication you have the
same problem of the session potentially timing out prior to the user logging
out (by losing the cookie or closing the browser). So, the way you code this
is you code defensively. Always check to see if the data you put into Session
is there and if it's not either refetch it (if you're using Session like
a Cache) or if it's truly volatile data (like a Shopping Cart) then you need
to deal with that contingency.

-Brock
DevelopMentor
http://staff.develop.com/ballen



> Hi
> When we use forms authentication I set the time and a url for login
> page
> after configured amount of time, via web.config.
> But, what is the best practice to do it after configurable amount of
> time,
> or after session end when it is a windows authentication




 
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
Applet to run on Win 98, Win ME, Win XP, Win Vista & Win 7 ?? Krist Java 6 05-06-2010 11:53 PM
how to sign out forms authentication on session end JohnDeHope3 ASP .Net Security 2 10-11-2006 02:55 PM
End Windows Authentication session? J ASP General 0 08-02-2006 06:32 PM
Tomcat JSP session beans not being removed at the end of the session John Smith Java 2 07-15-2004 12:46 PM
Session end event is firing immediately after session start Ram ASP .Net 0 05-19-2004 08:22 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