asp.net mvc - C# MVC multipletabs session issue -


we facing 1 issue user using multiple tabs, each tab share 1 session particular user want each tab have unique session, have session mode in "inproc" added cookieless="useuri" i.e. sessionstate mode="inproc" cookieless="useuri". adding helped each tab having unique session worked in ie private mode not in ie normal mode, chrome & firefox, gets stuck on login page, our login method azure active directory i.e. (federation)authentication, page keeps loading , not moving homepage of our application, don't know what's going on please help.

fyi, storing class properties in session using sessionstate mode="inproc" cookieless="useuri" or bad way?

here code have used aad authentication

public void configureauth(iappbuilder app) {     app.setdefaultsigninasauthenticationtype(cookieauthenticationdefaults.authenticationtype);  // authentication type cookies      app.usecookieauthentication(new cookieauthenticationoptions());      app.useopenidconnectauthentication(         new openidconnectauthenticationoptions         {             clientid = clientid,             authority = authority,             postlogoutredirecturi = postlogoutredirecturi,             notifications = new openidconnectauthenticationnotifications                {                    authorizationcodereceived = (context) =>                     {                         x509certificate2 cert = null;                             x509store store = new x509store(storelocation.currentuser);                        // here code certification & access token                         return task.fromresult(0);                    }                }         }); } 

this not possible. when session created, cookie sent down client session id, , web browser blindly send cookie each request same domain, whether in 1 tab or hundred. if session cookie received server, restore session.

it works in "private" mode not because of changes made, because in private mode each tab gets totally unique context, including cookies. however, in normal browsing mode, tabs have access cookie, , there's nothing can that.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -