Share PHP sessions among multiple domains
Hello i have have domain.com and sub.doamin.com but how to make both domain have the same session when i start session or cookie ?
-
Re: About php session Google. [url=http://stackoverflow.com/questions/4759312/session-share-across-multiple-domains-on-same-server]php - Session Share Across Multiple Domains On Same Server - Stack Overflow 0 -
Re: About php session [quote="vanessa, post: 1621862">Google. [url=http://stackoverflow.com/questions/4759312/session-share-across-multiple-domains-on-same-server]php - Session Share Across Multiple Domains On Same Server - Stack Overflow
Thz... so we can't use session on the different domain. Just share it by Get or Post the id instead. Hmmm.. ok Let me try!0 -
Re: About php session [quote="vibol, post: 1622242">Thz... so we can't use session on the different domain. Just share it by Get or Post the id instead. Hmmm.. ok Let me try!
I just wanted to point out that it's likely not a good security practice to implement this type of behavior. You may want to look at your overall goal and determine if it's worth making such a change. Thank you.0 -
Re: About php session [quote="cPanelMichael, post: 1622502">I just wanted to point out that it's likely not a good security practice to implement this type of behavior. You may want to look at your overall goal and determine if it's worth making such a change. Thank you.
Understand thz for your recommended. But i want when my user login with mydomain.com they can access sub.mydomain.com without re-login again. thz0
Please sign in to leave a comment.
Comments
4 comments