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
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
Can somebody show me the code for vb.net and where to place, during form load?
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
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
How do you handle Session timeout in a Visual Basic application?
Regards
Washington
Thanks Frank,
The sample (and the code added to my application) works perfectly – no more session timeout.
Thanks
Nic
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.