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

  • 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">
                        <allow roles="Director, Manager, Supervisor, Superintendent, Admin"/>
                        <deny users="?"/>

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

FormsAuthentication.SetAuthCookie(string username,bool createPersistentCookie)

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

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