I am working on an application where we are saving some member's (not logged in user) information in session.
That specific ID is used to take payments and do other things as well. However, when i open the two tabs of that application or two windows of that application; the member's session id mismatches. The current tab picks up the ID of the secondary tab which is opened.
I request for some guidance/help.
I am 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;
}