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!

/Erik
haveabunAsked:
Who is Participating?
 
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?

/Erik

0
 
jkofteCommented:
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)
0
 
Pratima PharandeCommented:
are you using shared variables to stroed in session ?

we are faced same problems because of shared variables
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
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.
0
 
Pratima PharandeCommented:
are you using shared opublic variables
0
 
haveabunAuthor Commented:
Has worked since then. So this might have been the problem. I do not know why.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.