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. Web Development
  3. ASP.NET
  4. How to restrict session variable b/w tabs of a browser?

How to restrict session variable b/w tabs of a browser?

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
5 Posts 4 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
    surender m
    wrote on last edited by
    #1

    hi friends, help me to restrict session variable to share among the tabs of a browser. thanks in advance surender

    No Defeat Is Final Until You Stop Trying!.......

    P 1 Reply Last reply
    0
    • S surender m

      hi friends, help me to restrict session variable to share among the tabs of a browser. thanks in advance surender

      No Defeat Is Final Until You Stop Trying!.......

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      I think you'll have some trouble doing that, as the session depends on the process your browser is open in. You'd be better trying to handle having two tabs open.

      S 1 Reply Last reply
      0
      • P Paddy Boyd

        I think you'll have some trouble doing that, as the session depends on the process your browser is open in. You'd be better trying to handle having two tabs open.

        S Offline
        S Offline
        surender m
        wrote on last edited by
        #3

        here the scenario is like, m maintaining client ids in session, m doing some processing on one client id and if i open a new tab in the browser i can see the same client id in the second tab. i want to restrict this. pls suggest me how to do that. thanks inadvance surender

        No Defeat Is Final Until You Stop Trying!.......

        N D 2 Replies Last reply
        0
        • S surender m

          here the scenario is like, m maintaining client ids in session, m doing some processing on one client id and if i open a new tab in the browser i can see the same client id in the second tab. i want to restrict this. pls suggest me how to do that. thanks inadvance surender

          No Defeat Is Final Until You Stop Trying!.......

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          surender.m wrote:

          i want to restrict this.

          You can't as it is controlled by the browser.

          Navaneeth How to use google | Ask smart questions

          1 Reply Last reply
          0
          • S surender m

            here the scenario is like, m maintaining client ids in session, m doing some processing on one client id and if i open a new tab in the browser i can see the same client id in the second tab. i want to restrict this. pls suggest me how to do that. thanks inadvance surender

            No Defeat Is Final Until You Stop Trying!.......

            D Offline
            D Offline
            datacop
            wrote on last edited by
            #5

            You can't. The work-arounds are all ugly as well... 1. Don't use session 2. Use viewstate to keep data in (since viewstate is tied to a single page instance) 3. Use Querystrings 4. Use a custom property bag solution which utilizes a combination of viewstate/querystrings to maintain keys across.. 5. tell your users not to use multiple tabs.

            --- Don't be irreplaceable. If you can't be replaced, you can't be promoted.

            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