Link to home
Start Free TrialLog in
Avatar of addicktz
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?
ASKER CERTIFIED SOLUTION
Avatar of REA_ANDREW
REA_ANDREW
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of addicktz
addicktz

ASKER

I tried SetAuthCookie, and I get the same results =[
Membership.Validate(Logincontrol.username, 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.