Last post Oct 22, 2014 04:09 AM by vuyiswamb
Oct 21, 2014 05:54 AM|vuyiswamb|LINK
Good Day All
I hope someone can help me. i have a Asp.net web application that is running on 4.51 , When the User login Successfully i return an Object that has info for that user and store this in a Static object. Now my problem is the i
User 1 Login (Welcome James)
User 2 Login (WelCome Daniel)
and User 1 refreshes the Page (Welcome Daniel)
My user sessions override each other. i did mess around with the IIS Session before , i just noticed this now. Can anyone help.
Oct 21, 2014 06:08 AM|adeelehsan|LINK
Do not use static objects. Because these will be common data to all objects of the page class. Use non static object to store user specific data.
Post your code of session management for more info.
Oct 21, 2014 09:29 AM|francissvk|LINK
Don't rely on Static variables on this kind of scenarios. Since they are global and a single copy. So what happens is, most recent value only available in that variable.
I just want you guide thru the below url:
Oct 21, 2014 09:39 AM|PatriceSc|LINK
The point is that unlike a Windows app where each user runs its own application instance,, a web application is a single application used by multiple users. So as a result you won't have the same behavior and in particular static data are shared accross
all users. Don't use static data for user scoped data in a web app.
Oct 22, 2014 04:09 AM|vuyiswamb|LINK