Session in ASP.NET

Hi I have a small ASP.NET web application developed with VS 2005.
The web app runs on a MS Windows Server 2003 SE SP 2 and IIS v6.0.  

When two or more users are logged in at the same time, sometimes one user suddenly has the session for another user. And they can be on the same network or on different networks, also sometimes in different contries.
The website can be accessed through an external domain and an internal domain.
Can anyone help me figure out what this could be and/or help me fix this problem?

Thank you!

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

do you call your session Id form a function defined as static ?

no object instances are created with static (or shared in vb) calls. this can cause your issue.

you can remove the static definition and create an object from your classes in your website.

call only constant values from static functions (i.e: a value from your web.config file)
Pratima PharandeCommented:
are you using shared variables to stroed in session ?

we are faced same problems because of shared variables
haveabunAuthor Commented:
No I am not using static functions or variables. The session variables is mainly used in the master page. And in some user controls to check access to that page. So the session variables are mainly called in Page_Load.
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Pratima PharandeCommented:
are you using shared opublic variables
haveabunAuthor Commented:
Thanks for the replies, I have been busy lately and have not been checking you're answers. Sorry!

No there is no public variables only public methods. There might be some protected variables.

I found some redirects that used absolute paths. I changed them to relative paths. And I have not got a report that they have had any issues with the sessions since then. Could this have been the problem maybe?



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
haveabunAuthor Commented:
Has worked since then. So this might have been the problem. I do not know why.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.