Thursday, 15 March 2012

Separate sessions once opening the same web page on two different tabs of the same browser Asp.net C# -



Separate sessions once opening the same web page on two different tabs of the same browser Asp.net C# -

is possible create separate sessions 1 time opening same web page on 2 different tabs of same browser

<sessionstate mode="inproc" cookieless="useuri"></sessionstate>

i don't want display url

http://localhost/sampleweb/(s(afdg3ires1ik0lmjm3pkjtzl))/default.aspx

that depends on implementation -

if using cookie session browser created , using within application, no. not possible. because depends on browser , browsers utilize same session, (which saved in cookie , 1 cookie namespace exists 1 site) multiple tabs.

but if using cookieless session , using session key url parameters, possible. in case might have implement or utilize own custom session manager manage sessions.

asp.net has cookieless session management system, haven't used 1 before. might wanna seek that. can find documentation here -

cookieless session

if utilize cookieless session, session key appended urls , can consider different tabs if different browser tabs, might work you. because in scenario, there no way browser identify both same sites , should utilize same session, not using cookies.

c# asp.net session

No comments:

Post a Comment