addicktz
asked on
Login control logs in, but user does not stay logged in.
I have a VS2005 ASP.NET Login control that I am using. I log in using the control, it redirects me to a page within the following folder...
<location path="secure/forms">
<system.web>
<authorization>
<allow roles="Director, Manager, Supervisor, Superintendent, Admin"/>
<deny users="?"/>
</authorization>
</system.web>
</location>
The user I am logging in with has the roles "Director, Admin, User". When the login control redirects me to the page, the page redirects me to the login page, and the login view says I am not logged in. Any ideas on how I can make the user stay logged in after logging in?
<location path="secure/forms">
<system.web>
<authorization>
<allow roles="Director, Manager, Supervisor, Superintendent, Admin"/>
<deny users="?"/>
</authorization>
</system.web>
</location>
The user I am logging in with has the roles "Director, Admin, User". When the login control redirects me to the page, the page redirects me to the login page, and the login view says I am not logged in. Any ideas on how I can make the user stay logged in after logging in?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Membership.Validate(Loginc ontrol.use rname, Logincontrol.password) returns true, but the user doesnt seem to really ever be logged in, Any ideas why it wouldn't work, or a work around would be greatly appreciated it.
ASKER