简体   繁体   中英

Form Authentication ask for relogin

I am using

FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, true);

and I set 'true' to persist cookie. But when user do login it redirected user to desired page.

if user without getting log out close the browser, and reopen the browser access the URL it again show a login page.

Any Idea what I am missing in my implementation?

Thanx

You are setting a permanent cookie not a session cookie with persist = true.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM