javascript - How to manage session in MVC Application -


i new mvc not known how manage session.in application login using simple membership function.when first login application works properly,but when logout done , in address bar giving proper controller , action wihtout login opens directly without login.i think @ situation session required how apply not known. please suggest solution this.

advanced thank you.

asp.net provides framework handling user authentication, called "identity". available in both asp.net core (latest) , asp.net 4, documentation available both.

asp.net core: https://docs.asp.net/en/latest/security/authentication/identity.html

asp.net 4.6: http://www.asp.net/identity/overview/getting-started/introduction-to-aspnet-identity

both sites have examples of how build applications it.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -