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. Same Session in two browsers

Same Session in two browsers

Scheduled Pinned Locked Moved ASP.NET
question
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
    Soumini Ramakrishnan
    wrote on last edited by
    #1

    I logged in to my account in codeproject. Then I took another instace of the browser. In that also I opened codeproject. Then that session is available in the newly opened browser. How is it made possible?

    N C 2 Replies Last reply
    0
    • S Soumini Ramakrishnan

      I logged in to my account in codeproject. Then I took another instace of the browser. In that also I opened codeproject. Then that session is available in the newly opened browser. How is it made possible?

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

      When logged in, you might have checked "Remember me" check box. It uses a cookie to persist your login details.

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      1 Reply Last reply
      0
      • S Soumini Ramakrishnan

        I logged in to my account in codeproject. Then I took another instace of the browser. In that also I opened codeproject. Then that session is available in the newly opened browser. How is it made possible?

        C Offline
        C Offline
        ChrisKo 0
        wrote on last edited by
        #3

        Sessions are per PC access, not per Browser access. So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.

        N 1 Reply Last reply
        0
        • C ChrisKo 0

          Sessions are per PC access, not per Browser access. So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.

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

          ChrisKo wrote:

          So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.

          I doubt. AFAIK, session will be shared if the new instance window is the child of instance who have a session, like popup windows etc. If you are taking a new instance by clicking on the browser executable file, I don't think that session will be shared.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          A 1 Reply Last reply
          0
          • N N a v a n e e t h

            ChrisKo wrote:

            So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.

            I doubt. AFAIK, session will be shared if the new instance window is the child of instance who have a session, like popup windows etc. If you are taking a new instance by clicking on the browser executable file, I don't think that session will be shared.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            A Offline
            A Offline
            Amit Agarrwal
            wrote on last edited by
            #5

            yes, I will go with ChrisKo, Session will be shared between two browser window. note: - a new instance of IE will use a different session (from IE): good - a new tab in IE will use same session (from IE): bad - a new instance of firefox will use a different session (from IE): good - a new instance of firefox will use same session state (from firefox): bad. - a new tab in firexox will use same session state (from firefox): bad Conclusion: It uses same session state when it is same process !!! => NOT VERY COOL

            Amit Agarwal

            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