Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6554945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:45:37+00:00 2026-05-25T12:45:37+00:00

i have a problem with my ASP.NET 4.0 Project in MVC3 with MySql membership

  • 0

i have a problem with my ASP.NET 4.0 Project in MVC3 with MySql membership provider.
The thing is this… when i run my web application in VisualStudio 2010, when i login with FormsAuthentication.SetAuthCookie(mail, true); i get the correct user with Membership.GetUser(), but, if i do a FormsAuthentication.SignOut() and stop my web application, and i create a new user with the ASP.NET Configuration and run the project, if i login with the new user, then the Membership.GetUser() gets the old logged user and not the new one. What i have to do to login and get the correct user, is to stop the ASP.NET Development Server and start again with the run button in vs2010.
Why i have this problem?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:45:37+00:00Added an answer on May 25, 2026 at 12:45 pm

    I found the problem.. was that i put a static MembershipUser in my class that was calling Membership.GetUser() and that was giving me the wrong user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET web project and a membership provider configured via my web.config.
I have problem with create ulr routing for asp.net mvc3 application. My project has
i have a problem with the asp.net MVC3. when i create a new project
I have this problem in my ASP.NET application where I'm seeing some of my
I have a problem with a model in a asp.net mvc3 application. First of
I'm working on a web application project using ASP.NET MVC3 and database in SQL
I have an asp.net mvc3 project, it has some reports in aspx web pages.
Prehistory: I have a simple ASP.NET MVC3 application. In the project file i've turned
I have troubles consuming unity container in ASP.NET MVC3 application. I have several project
I've written a simple web application using asp.net mvc3 and I have a login

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.