Session Variable Confusion

Results 1 to 3 of 3

Thread: Session Variable Confusion

  1. #1
    Raj Bhatt Guest

    Default Session Variable Confusion

    Here is my dilemma. I log-in to a site as one user (user #1). I then open up another instance of the browser on the same computer and log-in to the same site as another user (user #2). When I go back to the original browser, I am somehow now logged-in as user #2. Does anybody know how that happened and if there is anything I can do to prevent it? (As you might suspect, I'm using Session variable to maintain the User data throughout the sessions.)

  2. #2
    Join Date
    Dec 1969

    Default Cookie Confusion

    Session variables are stored as cookies on the client machine. When you log on the second time, the first cookie is overwritten by the second. <BR>I don&#039;t know of a way to avoid this, but I don&#039;t see why it&#039;s an issue either, other than for the developer. Why would two different people simultanously share the same machine to view the same site?

  3. #3
    Join Date
    Dec 1969

    Default Because you are under the same session ..

    so the new session value is overwriting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts