开发者

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.

开发者_JS百科
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://)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜