2

How to clear cookies when using ASWebAuthenticationSession, the scenario is like, a different user can use the same device to login. If a user has already used it with SSO done, app is not insisting SSO for the new user.

So need to clear cookies.

Thanks in advance.

ragul ml
  • 703
  • 2
  • 7
  • 18

1 Answers1

6

Before calling session session.start() you need to set one specific property: session.prefersEphemeralWebBrowserSession = true.

It's will start clear session and will not set new cookies.

Max Potapov
  • 1,267
  • 11
  • 17