Reputation: 11652
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 ?.
Upvotes: 1
Views: 754
Reputation: 66641
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://)
Upvotes: 1