Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, in my application i want to use cookie for every request and response, and Authorization, when he request any page in the application i want that redirect to login page can anybody please help in this.....


thank you in advance....
Posted
Comments
Sandeep Mewara 27-Jun-12 7:47am    
Every page request redirects to login? You sure? Who is willing to use such application? :doh:

The easiest way to do this is to implement Membership - IIS will then handle kicking unauthorised users to the login page.
MSDN has a good tutorial: http://msdn.microsoft.com/en-us/library/yh26yfzy(v=vs.85).aspx[^]
 
Share this answer
 
So if understood correctly you want cookies to perform authentication and authorization.

This is called custom forms authorization and here is how you do it

Understanding and Implementing ASP.NET Custom Forms Authentication[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900