IE7 restrict the browser to a single tab
-
Hi Can anyone please tell me how to restrict the browser to a sigle tab,and prevent the user from opening any new tabs in the same browser. Is it possible to achieve this from javascript or on the server side ? Thanks in advance
Nope. It's not possible to restrict IE7 to a single tab from code running in the browser and definitly not possible to do it from the server side. It IS a setting available to the user of IE7, but changing that setting requires IE7 to be restarted in order for it to take effect.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Nope. It's not possible to restrict IE7 to a single tab from code running in the browser and definitly not possible to do it from the server side. It IS a setting available to the user of IE7, but changing that setting requires IE7 to be restarted in order for it to take effect.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008Hi Dave, Thanks for your response i got the point. My problem is that when the application is opened in multiple tabs in the same browser it is using the same session id. Making the session cookieless using the sessionstate attribute in web.config does solve my problem but the following link http://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx[^] says that it is not advisable for ajax enabled applications what maybe the reason for that or do i have any other work arounds to avoid the browser using the same sessionid across multiple tabs. Thanks, R.Sundar.
-
Hi Dave, Thanks for your response i got the point. My problem is that when the application is opened in multiple tabs in the same browser it is using the same session id. Making the session cookieless using the sessionstate attribute in web.config does solve my problem but the following link http://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx[^] says that it is not advisable for ajax enabled applications what maybe the reason for that or do i have any other work arounds to avoid the browser using the same sessionid across multiple tabs. Thanks, R.Sundar.
I have no idea since my experience with AJAX is really limited. You should be asking this in the ASP.NET forum, not C#.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008