Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
2.60/5 (2 votes)
i have developed a website but problem is that when a person logs in after providing ID and PASSWORD he successfully gets into ADMIN panel and feww other restricted pages but If person moves to some other page or anything that moves him away from Admin panel then HE REMAINS IN SESSION (thats good) but in order to browse to admin panel and other pages he again have to Provide ID and PWD mean again login, so any logic to cover this issues like not appearing LOGIN page if person is already in session ?

in short, See guys, e.g. this codeproject.com site, allows anybody to POST only after login and being logged in. right ? but what i login, browse to anyother page or site, (still Lgged In) but to again get access to this page i do have to provide ID and PWD, just to redirect to this page, so i think its a design issue to but don't know how to tackle this situation like if person is logged in and he browser to login page, it must say YOU are logged in
Posted
Updated 23-Feb-14 21:17pm
v3
Comments
Charan_Kumar 24-Feb-14 3:23am    
In pageload of each page, check the sessions are null or not by storing the userid and password in sessions
Ahmed Bensaid 24-Feb-14 5:58am    
Do you have something like this in your web.config ?

<authentication mode="Forms">
<forms name=".FormsAuth" loginUrl="~/Login.aspx" protection="All" slidingExpiration="false" requireSSL="false" />
</authentication>

<authorization>
<deny users="?"></deny>
</authorization>

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