Skip to content

Invalid session - set to not time out #673

Description

@itg-assistant

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions