Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. IE7 restrict the browser to a single tab

IE7 restrict the browser to a single tab

Scheduled Pinned Locked Moved C#
javascriptsysadmintutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sundar_R
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • S Sundar_R

      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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        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

        S Offline
        S Offline
        Sundar_R
        wrote on last edited by
        #3

        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.

        D 1 Reply Last reply
        0
        • S Sundar_R

          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.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups