I need to implement forms authetication in my web application .I want to redirect every user (who didnt login) to login page.
All user must login to view other pages. If user is not login or signout() then redirct to login page. If user is signout() then It must login to access other pages and back button of browser won't show his previous page(just login page)to force user to ligin .
How to use global.asax file in form authentication ?
Web.config :
<authentication mode="Forms">
<forms name="authUser" loginUrl="~/userLogin.aspx" />
</authentication>
<authorization>
<deny users="?"/>
</authorization>
On login page Username and password is match through database and a session is holding the informatioin,I need to have in session.
Go to the complete details ...