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