Shawn Ramirez asked 2017-03-04 00:02:54 UTC
I have modified my program.vb so that the session isn't supposed to timeout. But after about 5 minutes (I didn't time it but it is several minutes), I get an "Application Error" red dialog box that reads "Invalid Session".
What am I doing wrong? This is a monitoring application and needs to just sit on the screen without any user activity. It shows how one of our systems is running. I have a timer that runs every 5 minutes to update the data grid views.
It is a cookie session, but I do plan on changing it to cookie-less.
Public Sub Main()
Dim window As New Main()
window.Show()
AddHandler Application.SessionTimeout, AddressOf Application_SessionTimeout
End Sub
'prevent session timeout
Private Sub Application_SessionTimeout(sender As Object, e As System.ComponentModel.HandledEventArgs)
e.Handled = True
End Sub
Shawn Ramirez asked 2017-03-04 00:02:54 UTC
I have modified my program.vb so that the session isn't supposed to timeout. But after about 5 minutes (I didn't time it but it is several minutes), I get an "Application Error" red dialog box that reads "Invalid Session".
What am I doing wrong? This is a monitoring application and needs to just sit on the screen without any user activity. It shows how one of our systems is running. I have a timer that runs every 5 minutes to update the data grid views.
It is a cookie session, but I do plan on changing it to cookie-less.
Public Sub Main()
Dim window As New Main()
window.Show()
AddHandler Application.SessionTimeout, AddressOf Application_SessionTimeout
End Sub
'prevent session timeout
Private Sub Application_SessionTimeout(sender As Object, e As System.ComponentModel.HandledEventArgs)
e.Handled = True
End Sub