Solved

.net Session.SessionID same on different computers

Posted on 2014-04-28
7
46 Views
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.
0
Comment
Question by:youritstaff
  • 3
  • 3
7 Comments
 
LVL 75

Expert Comment

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

Author Comment

by:youritstaff
ID: 40027441
Yes, behind load balancer. But we have it directing to one server since this issue has started.
0
 
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?
0
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

by:youritstaff
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?
0
 
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.
0
 

Accepted Solution

by:
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.
0

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

856 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