Last post Mar 06, 2012 12:30 PM by yusif22
Feb 16, 2012 08:58 AM|yusif22|LINK
Hi please am am using session variables in my login page to transfer user data to another page but when two people try to log in at the same time one users session is overwritten by another there by two users having the same user content when their page
loads. Am using Inproc mode in a web farm hosted on godaddy windows hositng. some times in the course of browsing a user session value is replace by another user, please i need help urgently on this. I have enable session state in the page that needs to write
values into session variable and made pages that read sesion values readonly for enable sessionstate page directive. Because of this some times my session timeout even before the time set in the web.config
Feb 16, 2012 09:42 AM|sanjayjgoswami|LINK
Hay It is not possible
Session always create diffrent for diffrent user.
With Internet Explorer must be new instantat insted of other tab.
Session is share between tab .
Feb 16, 2012 09:51 AM|yusif22|LINK
it is happening do not doubt it and i myself is confused
Feb 20, 2012 01:05 PM|DMW|LINK
Are you doing anything silly such as storing the value from the Session object into a static/shared property/field. Are you using any static/shared methods?
You're quite correct. It shouldn't happen. The fact that it is would tend to imply that you have a bug in your code, and it is most likely caused by using shared state.
Feb 20, 2012 01:12 PM|venkatmca008|LINK
hi.....just make user user id unique...it will work fine...user name may same so use user id ...
Feb 21, 2012 08:46 AM|DMW|LINK
ser user id unique.
User ID has absolutely nothing whatsoever to do with Session. Session is a completely orthogonal concept to user id.
There's one other thing that you should check: caching. If you say that one user is seeing another user's data, then it might be that you have caching turned on for a page, and you're not varying the content based on the session.
Feb 21, 2012 04:10 PM|roopeshreddy|LINK
Since you are using WebFarm, you can't use InProc Session! If you have use InProc mode, then check the Sticky sessions!
Web Farms are used for load balancing and the session id may be generated from one server and the subsequent request is processes on the other server, which leads to your problem!
You can also consider StateServer mode incase of WebFarm. It is more reliable!
Hope it helps u...
Mar 06, 2012 12:30 PM|yusif22|LINK
i had enable caching in the page and that was causing the problem, thanks very much for ur help and i appreciate it a lot, can u give me ur facebook name so that i can chat with u.