Click here to Skip to main content
15,906,106 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to restrict session data shared into different tabs with in same browser window.
for that i have used cookieless="true" but that is embbed the session id at url.
so i dont want to show that session id at url.
Is there any solution at java script or any technique to resolve that multiple tabs should not maintain same session data.
Posted

1 solution

Unfortunately, no.

Sessions are shared with all the tabs in a particular browser. But different browsers can have different sessions.
 
Share this answer
 
Comments
DGKumar 3-Sep-15 3:58am    
Do we have any code for javascript or c# code to clear current tab cookie and regenerate another cookie when we try to open in another tab in same single browser?
But this is a very weird requirement. Why do you want this? Can you explain me why you need this exactly?
DGKumar 8-Sep-15 10:05am    
My client wants to open 2 different tabs with in same browser but the new tab filtered data is modified the existing session tab data.
But he wants to maintain different data in different tabs without disturbing another tab.
Is there any solution for this? Instead of session is there any object is there to store complete data maintenance?
Then maintain a session which would indicate the update. Just a boolean, update that when change happens in new tab. While in existing tab, doing any operation, you can check that boolean session to know whether the data is modified in different tab or not.

But I don't think this is a good idea. You need to make the client understand how browsers and website work. Very weird requirement. No website work like the way he wants. Just try to explain, I am sure he will get it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900