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

  • SEARCH
  • Home
  • 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 6374901
In Process

The Archive Base Latest Questions

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

I am facing a very strange issue regarding the cookie value of the browser.

  • 0

I am facing a very strange issue regarding the cookie value of the browser.
I am using IE8 and I want to manage session in such a way that when any new user tries to connect my application, the previous instance should get closed automatically.

For this I am setting cookie every time for each user’s login attempt and incrementing.
Now this scenario working perfectly in IE6 but in IE8 I am facing the issue:
when user first time log in, cookie value is set for ex 1. Now I am opening another IE8 window and login again with cookie value 2.Now when I go to previous instance, the cookie value is also changed to 2(which should be 1 as set).

So Multiple instances are running of the application which should not happen.
Also when I logout from 1 instance, another is automatically logged out.
I need only one instance at a time in any case.
(This scenario is working perfectly in different browser i.e FFs and IEs i.e opening 1st instance in IE/FF and second in FF/IE).

  • 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-25T01:32:46+00:00Added an answer on May 25, 2026 at 1:32 am

    The reason is that both instance of IE are writing cookies into the same location (cookies are just files on the hard drive). While it may seem like two different clients for your web app, from the front end, when you log in from the second window, the cookie is saved overwriting the previous cookie. Now the first instance just sees the new cookie and sends it happily to the server. The same would happen if you just go and manually edit the cookie file. This is not a bug – this is how cookies are supposed to work. Note that your intended behaviour would show if you use different computers.

    To prevent multiple simultaneous sessions from the same computer and same app, you can use a different technique. For example, on client login, hash the login timestamp and save this hash against the user account. Then send this hash to each page and have the browser send this hash back to you when a new page is requested. On the server, compare the hash received from the client with the hash stored against the user account. If they do not match, then you log out the app in this window, since obviously another login has been done in another window. This will work with multiple tabs/windows of the same app and also across different windows/computers. I have used this technique in the past. Naturally, it’s not completely foolproof (nothing is), but it worked in all the cases I needed.

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

Sidebar

Related Questions

I am facing a very strange issue. I have a SharePoint webpart that displays
I am facing very strange issue. When I was running my app in iPhone
I'm facing very strange issue, I'm getting JSON object from django powered site and
I've websphere application server 7 network deployment, and am facing a very strange issue,
I am facing a very strange issue with FileInfo and the Length property. I
I am facing a very strange issue ever since I updated the Xcode with
Im facing with a very strange issue and i dont know yet the source
I am facing the very strange problem in HTML/CSS.I am using chrome 12.0.742.122. Now
I am facing a very strange issue in X-Cart, I am working on localhost.
This is a very strange issue I am facing for a while now, when

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.