Request.IsAuthenticated is failed on server?
Request.IsAuthenticated
condition failed on server after I deploy the code. It is working for me when I ran from local server.
FormsAuthentication.RedirectFromLoginPage("user", True)
Session("user") = mUser
Response.Redirect("~\Clients.aspx")
I am checking
Request.IsAuthenticated
in Clients.aspx page load. There it is failing.
How can I work it on server also ?.
Check on web.config the parameter requireSSL="true" on the Authentication|forms area.
If this option set to true, or not exist and the default is true, then the Request.IsAuthenticated is fail if the pages you ask for is not encrypted with SSL. (in other words if your pages are http:// and not https://)
精彩评论