januszstabik
januszstabik

Reputation: 69

Logout member on browser close

How can I configure my membership provider to not use persistent cookies (i.e. to ensure that the member is logged out when the browser is close)?

Upvotes: 0

Views: 752

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

That's the default behavior of the membership provider (no persistent cookie is created). Pass true as second argument to the SetAuthCookie method if you want persistent cookies to be used.

Upvotes: 2

Related Questions