c# - Web Security not working in Chrome and Firefox -
The user I'm currently using Web Security can log in using this code < pre> The login code works, but What did I remember? Is this an issue? or something else? I get a lot of answers from Google, but they have not helped me According to my knowledge So you should try the / P> if (login to the web site (loginRequest.EmailAddress, loginRequest.Password)) {FormsAuthentication.SetAuthCookie (loginRequest.EmailAddress, false); Var userDetails = new string [2]; UserDetails [0] = loginRequest.EmailAddress; Var Current Users = Roles BetterForce User (loginRequest.EmailAddress); UserDetails [1] = Current user [0]. Ostring (); Return feedback = request Creterespons (HTTPPatts Code. Accepted, User Details); }
isAuthentcated always incorrectly returns and
the current user name always -1 and all
Websecurity methods When I run my application on Chrome and Firefox browsers it is not a good job but it is working well on the IE browser.
Any one help
Formsuthconfook.SetAuthCookie (string, bool); The string for login / out can be used to login / logout in the form of true user / user and bull value.
FormsAuthentication.SetAuthCookie ("user", true); The user will enter and their userID will be in WebSecurity.
FormsAuthentication.SetAuthCookie ("admin"
FormsAuthentication.SetAuthCookie ("user", true);
Comments
Post a Comment