Web Connection
Remove cookie on closing the browser
Gravatar is a globally recognized avatar based on your email address. Remove cookie on closing the browser
  Kathy
  All
  Jun 9, 2021 @ 10:44am

Hello all,
I apologize if this is a duplicated question but I was not able to find any straightforward answer for this.
How is it possible to remove session cookie when the browser is closed manually.

Some of our users are concerned that when they close their browser and re-open it (before session timeout), they're not logged out.

I would appreciate your suggestions on what the best practice could be?
Many thanks,
Kathy

Gravatar is a globally recognized avatar based on your email address. re: Remove cookie on closing the browser
  Rick Strahl
  Kathy
  Jun 9, 2021 @ 08:18pm

By default the session cookie should not persist unless you explcitly set it up to be a permanent cookie in the InitializeSession() call.

By default the cookie should release when the browser is shut down. Note that closing the Window is not enough - you have to shut down the browser to release the cookie.

The only other option is to explicitly log users out either by clicking a button or capturing the onclose() event in the browser and explicitly clearing the session/cookie.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Remove cookie on closing the browser
  Kathy
  Rick Strahl
  Jun 10, 2021 @ 08:51am

Thank you so much for your help Rick.
That was all I needed to confirm.
Regards,
Kathy

© 1996-2021