Solved

.net Session.SessionID same on different computers

Posted on 2014-04-28
7
39 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 74

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 74

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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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 74

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now