asp.net - How to Handle Concurrent sessions in .Net C# -


i working on application saving member's (not logged in user) information in session.

that specific id used take payments , other things well. however, when open 2 tabs of application or 2 windows of application; member's session id mismatches. current tab picks id of secondary tab opened.

i request guidance/help.

i using following code:

public static object getsessionvalue(string sessionname) {     if (httpcontext.current.session[sessionname] == null) {         return null;     } else {         return httpcontext.current.session[sessionname];     } }  public static void setsessionvalue(string sessionname, object sessionvalue) {     httpcontext.current.session[sessionname] = sessionvalue; } 

however, when open 2 tabs of application or 2 windows of application; member's session id mismatches. current tab picks id of secondary tab opened.

if open same website in 2 different tab of browser, share session. design.

you can replicate it. login bankofamerican.com, , open new tab , paste https://secure.bankofamerica.com/transfers/funds-transfer.go notice not need login.

however, if paste url in new browser window (while logging in 1 browser window - must same type of browser), share session.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -