Login  
Search All Forums
Dart Home | PowerWEB LiveControls for ASP.NET | Custom Development Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
AuthorForum: PowerWEB LiveControls for ASP.NET
Topic: Session Object Expires
mikewheat
mikewheat@tm.net

From: Davison, MI USA
Posts: 26
Member Since: 05/16/05
posted July 18, 2008 1:57 PM

Hi,

I have the ViewState disabled.

When the session expires and a button is clicked, nothing happens and Internet Explorer hangs.

Should I implement a timer to redirect to the login page in order to prevent IE from locking up or is there another method for handling this specific problem?

Thank you,
Mike
mikewheat
mikewheat@tm.net

From: Davison, MI USA
Posts: 26
Member Since: 05/16/05
posted July 18, 2008 5:02 PM

Hi,
 
I have an update on my progress.

I have a live timer on the page.

<cc1:LiveTimer ID="tmrSession" runat="server" Interval="10000" Blocking="False" Enabled="false"></cc1:LiveTimer>            

I have the following in the code behind page...

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  If (Not Me.IsPostBack) Then
   tmrSession.Interval = 10000
   '(Session.Timeout * 60000) - 60000
   tmrSession.Enabled = True
   tmrSession.Start()
  End If
End Sub

Private Sub tmrSession_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrSession.Tick
  If Not CheckSession(Session) Then
   tmrSession.BufferedScript.Write("window.location='https://www.autosalvageauction.com/salogin.aspx?se=0';")
  End If
End Sub

You can set the tick of the timer to be the same as the session timeout. I chose not to just in case a file was updated on the server and forced all session information expired.

This happens when I update files in the App_Code folder.

Mike
Reply | PowerWEB LiveControls for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX