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. Session sharing in firefox

Session sharing in firefox

Scheduled Pinned Locked Moved ASP.NET
helptutorial
16 Posts 7 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.
  • N N a v a n e e t h

    You are using two firefox tabs rite ? In two different FF windows session will be different. But firefox will share session across tabs. I think, I saw bug report regarding this in BugZilla.


    My Website | Ask smart questions

    M Offline
    M Offline
    Mr Sam
    wrote on last edited by
    #4

    No Sir, I am using two different Firefox windows yet the session is shared. Therefore got my head stuck:confused:

    Bye

    N V K 3 Replies Last reply
    0
    • M Mr Sam

      No Sir, I am using two different Firefox windows yet the session is shared. Therefore got my head stuck:confused:

      Bye

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

      Mr.Sam wrote:

      I am using two different Firefox windows yet the session is shared

      How this is possible ? Have you tried Ctrl + F5 ?


      My Website | Ask smart questions

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

        Mr.Sam wrote:

        I am using two different Firefox windows yet the session is shared

        How this is possible ? Have you tried Ctrl + F5 ?


        My Website | Ask smart questions

        M Offline
        M Offline
        Mr Sam
        wrote on last edited by
        #6

        Yes this is possible.... The same question is posted by a user when i googled "session sharing in firefox" the second post is as follows... " Is it possible to restrict Firefox such that if you log into the same web site with two different logins in two different windows/tabs that the data is not shared between the two? When I log into the website in the first window, everything's fine. When I log in again with a different user name, everything *appears* fine. However, when I go back to the first window, all of the session data is now that of the second login. How can I make Firefox behave and not share session information between tabs/windows? -Mike "

        Bye

        T N 2 Replies Last reply
        0
        • M Mr Sam

          Yes this is possible.... The same question is posted by a user when i googled "session sharing in firefox" the second post is as follows... " Is it possible to restrict Firefox such that if you log into the same web site with two different logins in two different windows/tabs that the data is not shared between the two? When I log into the website in the first window, everything's fine. When I log in again with a different user name, everything *appears* fine. However, when I go back to the first window, all of the session data is now that of the second login. How can I make Firefox behave and not share session information between tabs/windows? -Mike "

          Bye

          T Offline
          T Offline
          Talal Sultan
          wrote on last edited by
          #7

          Does the same thing happen with IE7?

          "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

          M 1 Reply Last reply
          0
          • M Mr Sam

            Yes this is possible.... The same question is posted by a user when i googled "session sharing in firefox" the second post is as follows... " Is it possible to restrict Firefox such that if you log into the same web site with two different logins in two different windows/tabs that the data is not shared between the two? When I log into the website in the first window, everything's fine. When I log in again with a different user name, everything *appears* fine. However, when I go back to the first window, all of the session data is now that of the second login. How can I make Firefox behave and not share session information between tabs/windows? -Mike "

            Bye

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

            Well, I tried this on my computer and it worked as expected. It was not sharing the code. Could you post your session checking and label assigning code ?


            My Website | Ask smart questions

            1 Reply Last reply
            0
            • T Talal Sultan

              Does the same thing happen with IE7?

              "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

              M Offline
              M Offline
              Mr Sam
              wrote on last edited by
              #9

              Yes but in tabs only... Not for different windows... Hey can u plz give me the answer....

              Bye

              1 Reply Last reply
              0
              • M Mr Sam

                No Sir, I am using two different Firefox windows yet the session is shared. Therefore got my head stuck:confused:

                Bye

                V Offline
                V Offline
                Venkatesh Mookkan
                wrote on last edited by
                #10

                Are you using Modules to do the business logics? Module shares the Sessions. Try to use a completely Object Oriented Programming. Modules usage in VB 6.0 period is different comparing to VS 2005 period.

                Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

                M 1 Reply Last reply
                0
                • V Venkatesh Mookkan

                  Are you using Modules to do the business logics? Module shares the Sessions. Try to use a completely Object Oriented Programming. Modules usage in VB 6.0 period is different comparing to VS 2005 period.

                  Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

                  M Offline
                  M Offline
                  Mr Sam
                  wrote on last edited by
                  #11

                  Actually there is an issue with the firefox... Firefox accepts a cookie from a website containing the session id. Then if that site is opened again in a different window it accepts a different cookie when the user tries to log on. If i guess correctly it overwrites the previous one and then you can act as different user altogether( The one who has signed in at a later stage) So, this is to be stopped.

                  Bye

                  1 Reply Last reply
                  0
                  • M Mr Sam

                    Hi all... I am experiencing problems due to session sharing in firefox. I have made and application and when I log on with two different users with different privileges on the same machine the session of one got intermixed with the other. For example: Scenerio: I login with user abc 123 Then I logon with xyz 456 I click on a link which is shown in abc and I get directed to the same page as requested but now the user name which i am showing at the top gets changed showing xyz now and when I get back to my home page again through a link the homepage gets modified according to xyz settings. Please help me in this regard. Thx Sam

                    Bye

                    G Offline
                    G Offline
                    Guffa
                    wrote on last edited by
                    #12

                    That's because you can't have two instances of Firefox running. When you try to start another instance, it will just open another window in the first instance. You can look in the process list in Task Manager, and you will see that there is only one Firefox process.

                    --- single minded; short sighted; long gone;

                    M 1 Reply Last reply
                    0
                    • G Guffa

                      That's because you can't have two instances of Firefox running. When you try to start another instance, it will just open another window in the first instance. You can look in the process list in Task Manager, and you will see that there is only one Firefox process.

                      --- single minded; short sighted; long gone;

                      M Offline
                      M Offline
                      Mr Sam
                      wrote on last edited by
                      #13

                      So please also tell me the way to do the solution

                      Bye

                      P G 2 Replies Last reply
                      0
                      • M Mr Sam

                        So please also tell me the way to do the solution

                        Bye

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

                        Why do you need two users on the same machine. Will this be a regular occurance in production?

                        1 Reply Last reply
                        0
                        • M Mr Sam

                          No Sir, I am using two different Firefox windows yet the session is shared. Therefore got my head stuck:confused:

                          Bye

                          K Offline
                          K Offline
                          Kelly Herald
                          wrote on last edited by
                          #15

                          How are you opening the second Firefox window? Are you actually creating a whole new process? If you look in Window's taskmanager's Processes tab is a new process being created? It seems that the session is tied to the application's process. The reason I ask this is because IE 6 (yes I said 6) will also show this problem of shared session if you open a new IE window using the CTRL+N shortcut. This is because IE is opening a new window but it is still in the same process. Darn, I should have read a couple more posts before posting. Guffa is correct.

                          Kelly Herald Software Developer

                          1 Reply Last reply
                          0
                          • M Mr Sam

                            So please also tell me the way to do the solution

                            Bye

                            G Offline
                            G Offline
                            Guffa
                            wrote on last edited by
                            #16

                            If you need separate windows to be separate identities, you can't use sessions or cookies to identify them. The identification has to follow the page, and be sent back and forth between the browser and the server for every request. You can for example put an id in a hidden field in the form. That way the id goes into the page, and back to the server at postback.

                            --- single minded; short sighted; long gone;

                            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