Posts: 17
Threads: 6
Joined: Apr 2018
Reputation:
0
Location: France
04-16-2018, 03:38 PM
(This post was last modified: 04-16-2018, 04:19 PM by Mikey29.)
Hello,
-How to close (Killing it) the usersession if the page or the browser is closed ... ?
(in the case the user don't use my own close button...)
With best regards
Mikey
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
Sessions will automatically time out and be purged after the session timeout if there is no activity from the user.
Posts: 17
Threads: 6
Joined: Apr 2018
Reputation:
0
Location: France
Thank you Kudzu, but what's happen's if user re-open the application before the timeout ?
-Is there a solutuion to force the purge just after closing the page or browser ?
With best regards,
Mikey.
Posts: 46
Threads: 19
Joined: Mar 2018
Reputation:
3
Location: US
If the user reopens the app before the timeout, he will initiate a new session. he cannot use the old session anymore.
Mohamed
Posts: 17
Threads: 6
Joined: Apr 2018
Reputation:
0
Location: France
Thank You Mohamed for your response.
I was wondering this, because, when I re-open, I've got page order in the same state after the user close the browser...
I'will try to work to force my page order...
With best Regards,
Mikey
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
It depends on your session settings. If you use cookie mode, they will reconnect to the existing session.
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
There is no reliable way to detect when the user closes the browser. The best way is to just let the session time out.
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
To use cookies, its a simple setting in the ServerController.