[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 364
  • Last Modified:

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?
0
addicktz
Asked:
addicktz
  • 2
1 Solution
 
REA_ANDREWCommented:
Do you call the setAuthCookie if you are using Cookies

FormsAuthentication.SetAuthCookie(string username,bool createPersistentCookie)

Andrew
0
 
addicktzAuthor Commented:
I tried SetAuthCookie, and I get the same results =[
0
 
addicktzAuthor Commented:
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.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now