.net Session.SessionID same on different computers

Posted on 2014-04-28
Last Modified: 2016-07-11
We are having an issue with Session.SessionID not getting a new ID for multiple users. A few users from different IP locations get the same Session.SessionID causing wrong Session Variable values to be returned. One computer is getting the same ID between Chrome and IE.

The server was restarted and the computers are still receiving the same SessionID. We changed from SQL Server Session to InProc Sessions and the same SessionID is still being generated for the same users.

We are just setting Sessions Variables and Not using forms authentication as this is being handled separately.

The server is Windows 2012 with IIS 8.0.

Please let me know if you need additional information.
Question by:youritstaff
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 40027420
Is your server behind a load balancer or reverse proxy?

Author Comment

ID: 40027441
Yes, behind load balancer. But we have it directing to one server since this issue has started.
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 40027459
If you remove the load balancer from the equation altogether, do you still experience the issue?
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.


Author Comment

ID: 40027511
I'm checking with the infrastructure group to see if they can make that happen. Have you seen issues like this in the past with SessionIDs and Load Balancers?
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 40027690
I haven't, but another team in my group had issue with session hijacking. I double-checked with them, and their issue turned out to be related to AppFabric, though.

Accepted Solution

youritstaff earned 0 total points
ID: 40034304
We found the issue. Believe it or not, it was the url. The user that sent the invitation had the SessionID embedded in the url. A handful of users consistently used it.

I don't understand why IIS wouldn't create a new id if that particular one didn't exist anymore. Are there any suggested best practices to prevent this in the future? I saw where some are creating the SessionIDs based on user/IP/browser/etc. But I would think that IIS 8.0 would try to do a better job at handling this vulnerability.

Thanks for your assistance.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question