[SOLVED] How to stop a session timing out?

Answered Closed
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

Can somebody show me the code for vb.net and where to place, during form load?

  • You must to post comments
0
0

Howdy,

I was checking this about the sessions timeout, this handler:

AddHandler Application.SessionTimeout, AdressOf YourFunction

I have two questions:
1, where should the handler be placed, form_load?
2, what should be the content of “YourFunction”? I just created an empty sub, like bellow, but i’m going something wrong.
3, Can’t I just use:   “sessionTimeout”: 0, in Default.json?
Thanks in advanced,

Private Sub MyDesktopMain_Load(sender As Object, e As EventArgs) Handles Me.Load
AddHandler Application.SessionTimeout, AddressOf FuncTimeOut
End Sub

Sub FuncTimeOut()

End Sub

  • 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 7 results