Author: Gluckens | Posted on: 5/12/2009 3:31:27 PM | Views : 365

Hi everybody!

I'm developping User authentification in my web application.
I'm trying to play a little with the cookies. The cookie I create contain the username, and some preferences of the user. All these info are encrypted.

During my Page_Load, I have a condition base on the User item (User.isInRole...).

Let explain the problem:
If I log with Gluckens, the cookie is created, everything is fine. My preferences are load correctly.
Now let's say I close the browser. I suppose that the session is cleared because I didn't check the "remember me" checkbox. The cookie is still there.
Now, I try to log with Gluckens222. During the event Login1_LoggedIn (I try Login1_LoggingIn too), I set the cookie with the new values, so the Username and preferences are changed. After this event, the event Page_Load is called. The problem is, after this second login, it's the preference of the first user that are loade ...

Go to the complete details ...