Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i make a web site where
1.first you have to log in with user id & password
2. if ur log in success Then you will access others page..??
Posted
Comments
Zafar Sultan 4-Apr-13 7:08am    
What's the issue? What do you mean by "How can I make a website where..."?
prodipjsr 4-Apr-13 7:14am    
i have develop a small web project. where i have a login page. now i want to fix
1. before access any page u have to log in in ur web site. means without log in u can access others pages..
raj ch 4-Apr-13 8:15am    
add in web.xml
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>

You need to use Forms Authentication. I would research it and this link may help, http://msdn.microsoft.com/en-us/library/ff647070.aspx[^].
 
Share this answer
 
Comments
fjdiewornncalwe 4-Apr-13 15:44pm    
5
 
Share this answer
 
Comments
IpsitaMishra 5-Apr-13 1:43am    
Thanks for accepting the solution ..:)
add in ur web.xml file
XML
<authentication mode="Forms">
            <forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
        </authentication>


 
Share this answer
 
Comments
ZurdoDev 4-Apr-13 15:45pm    
web.config
raj ch 5-Apr-13 2:42am    
yes u r right
prodipjsr 5-Apr-13 1:34am    
how to restricted others pages? i means some users access some pages some user can not access. Please help me i am new in web project..

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