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 maintain Session from one site to another

How to maintain Session from one site to another

Scheduled Pinned Locked Moved ASP.NET
tutorial
6 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
    sabby2006
    wrote on last edited by
    #1

    Hello all I have two websites and both the sites have common userid and password but different databases i.e user created on one site is automatically created on the other site. now what i want is that if the user is logged in on one site and if he clicks on some link for the other site, he should not be required to log in on the other site. His session of the logged in site should be carried to the other site also. Is is possible

    Regards

    C 1 Reply Last reply
    0
    • S sabby2006

      Hello all I have two websites and both the sites have common userid and password but different databases i.e user created on one site is automatically created on the other site. now what i want is that if the user is logged in on one site and if he clicks on some link for the other site, he should not be required to log in on the other site. His session of the logged in site should be carried to the other site also. Is is possible

      Regards

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Do the sites run on the same server ? If so, you should be able to centralise your membership database so it tracks who is online for both. You could also use a cookie, but that is hideously insecure.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      S 1 Reply Last reply
      0
      • C Christian Graus

        Do the sites run on the same server ? If so, you should be able to centralise your membership database so it tracks who is online for both. You could also use a cookie, but that is hideously insecure.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

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

        Yes, the sites are on the same server. Membership database? U mean to say that if a user is online it should be stored in the database or something like that........

        Regards

        C 1 Reply Last reply
        0
        • S sabby2006

          Yes, the sites are on the same server. Membership database? U mean to say that if a user is online it should be stored in the database or something like that........

          Regards

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          sabby2006 wrote:

          U mean to say that if a user is online it should be stored in the database or something like that........

          Yes, that's about the only way you will do it. The database is what the sites have in common, so it's where they can look for member info. They will have seperate sessions, which is what you'd expect and want. Unless you host one app, and the two actual apps are just subfolders of the main root.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          S 1 Reply Last reply
          0
          • C Christian Graus

            sabby2006 wrote:

            U mean to say that if a user is online it should be stored in the database or something like that........

            Yes, that's about the only way you will do it. The database is what the sites have in common, so it's where they can look for member info. They will have seperate sessions, which is what you'd expect and want. Unless you host one app, and the two actual apps are just subfolders of the main root.

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            S Offline
            S Offline
            sabby2006
            wrote on last edited by
            #5

            can u suggest me some useful link for the complete help on this

            Regards

            C 1 Reply Last reply
            0
            • S sabby2006

              can u suggest me some useful link for the complete help on this

              Regards

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              No, I've never heard of anyone doing this, or read anything about it.

              Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              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