How to stop a session timing out?

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
Answered
0
0

The application I am working on converting to WiseJ has a dashboard mode that displays data and is not clicked on by a user. How can I stop the session from timing out?

Thanks

Nic

  • You must to post comments
Best Answer
1
0

Hi Nic,

can you please try attached sample.

Quick explanation:

As long as the timer runs, the session will not timeout on the server but you still need to handle Application.SessionTimeout (see code in sample) because the client will still fire sessionTimeout if it doesn’t detect user activity.

We also have a bug with the timing that is being fixed. The client considers a mouse movement as a sign that the user is alive, but it doesn’t tell the server and the session may still expire.

Hope that helps.

Best regards
Frank

Attachment
  • You must to post comments
0
0

Hi Washington,

you can react on a session timeout by adding a handler like this in VB.NET:

AddHandler Application.SessionTimeout, AdressOf YourFunction

Best regards
Frank

 

 

  • You must to post comments
0
0

How do you handle Session timeout in a Visual Basic application?

Regards

Washington

  • You must to post comments
0
0

Thanks Frank,

The sample (and the code added to my application) works perfectly – no more session timeout.

Thanks

Nic

  • You must to post comments
0
0

Handle Applicaton.SessionTimeout on the server. I’m not sure if you have to do something else. I haven’t tried this scenario. Frank will verify and get back to you. If his office in Germany is dry.

I’m OOTO until middle of next week.

  • You must to post comments
Showing 5 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json