jmonty77 Posted September 23, 2020 Posted September 23, 2020 Hello, is there any way to capture invalid session and send a custom response to client? In my server i need to terminate some sessions that must not automatically reload to main page when I kill them, but I want that if I restart server, and invalid session occurs, all clients automatically reload. Thanks Jordi Quote
Sherzod Posted September 23, 2020 Posted September 23, 2020 5 hours ago, jmonty77 said: Hello, is there any way to capture invalid session and send a custom response to client? In my server i need to terminate some sessions that must not automatically reload to main page when I kill them, but I want that if I restart server, and invalid session occurs, all clients automatically reload. Hello, Can you please clarify your question? Quote
jmonty77 Posted September 24, 2020 Author Posted September 24, 2020 Hello, uniServer has "restartsessionontimeout" option, but from server side I want to kill some sessions with SessionManager.Sessions.PurgeSessionById, and I don't want this sessions restart. Quote
Sherzod Posted September 24, 2020 Posted September 24, 2020 18 minutes ago, jmonty77 said: and I don't want this sessions restart. Hello, And then what, he can no longer launch the application? Quote
jmonty77 Posted September 24, 2020 Author Posted September 24, 2020 He can launch the application later reloading the page manually, or clicking in "restart application", but If I kill his current session I don't want he can reenter in my system automatically. But If I disable "restartsessionontimeout", then if I must restart server, I lose all my clients until users manually start new session. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.