Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Forms Authentication Expiration Problem

Reply
Thread Tools

Forms Authentication Expiration Problem

 
 
Prasad Dannani
Guest
Posts: n/a
 
      07-07-2005

Hi Techies,
I am using Forms authentication for my asp.net i had given session time out
as 500
and also Forms time out also 500 even though its getting expired soon may be
4 minutes of Idleness its getting expired
see the forms auth configuration below

<authentication mode= "Forms" >
<forms name="adAuthCookie" loginUrl="LoginPage.aspx" protection="All"
timeout="500" path="/"/>
</authentication>
Had any body faced this problem earlier??

Thanks & Regards
R. Senthli Kumaran



 
Reply With Quote
 
 
 
 
jwalkerjr@gmail.com
Guest
Posts: n/a
 
      07-14-2005
Yes, many times. The Forms authentication timeout and Session timeout
work differently. Session timeout works by counting down from the last
time the use posted back (connected to) the server. Forms
authentication works on a half time scale. Basically, if the timeout
for Forms Authentication is set for 40 minutes, it waits until 20
minutes are done and then checks to see if the user has hit back to the
server.

So what I do is this. I check in the Global.asax.vb file in the
following event which basically say, if the session times out, then
expire the forms authentication ticket, which will bring them back to
the login page:

Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Fires when the session is started
System.Web.Security.FormsAuthentication.SignOut()
End Sub

Prasad Dannani wrote:
> Hi Techies,
> I am using Forms authentication for my asp.net i had given session time out
> as 500
> and also Forms time out also 500 even though its getting expired soon may be
> 4 minutes of Idleness its getting expired
> see the forms auth configuration below
>
> <authentication mode= "Forms" >
> <forms name="adAuthCookie" loginUrl="LoginPage.aspx" protection="All"
> timeout="500" path="/"/>
> </authentication>
> Had any body faced this problem earlier??
>
> Thanks & Regards
> R. Senthli Kumaran


 
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
Forms Authentication Cookie Expiration Problem for SSO Graham Wert ASP .Net Security 1 08-08-2009 08:28 PM
Forms Authentication - Time Expiration problems Prasad Dannani ASP .Net Security 0 12-12-2005 07:36 PM
Forms authentication and session expiration Rippo ASP .Net 18 06-17-2005 04:05 PM
forms authentication ticket expiration problem tparks69 ASP .Net Security 2 02-17-2005 08:11 PM
Forms authentication expiration Do ASP .Net 1 11-15-2003 06:26 PM



Advertisments