XenoK wrote:
How to transfer $_SESSION data from one place to another via storing it in a mysql database.
On the same website/domain?
Offline
GeonoTRON2000 wrote:
XenoK wrote:
How to transfer $_SESSION data from one place to another via storing it in a mysql database.
On the same website/domain?
sort of. The way that godaddy makes sub-domains work are a bit confusing, but across sub-domains.
Offline
*.eternityinc-official.com would be the domain you use across sub-domains.
Offline
As long as they're on the some server, you can use this:
session_id("YOUR SESSION ID HERE");
session_start();Offline
XenoK wrote:
GeonoTRON2000 wrote:
As long as they're on the some server, you can use this:
Code:
session_id("YOUR SESSION ID HERE"); session_start();awesome! thanks!
Actually, no. The session ID is stored in a cookie. It will definitely not go across different domains (even on the same server), but might go across subdomains.
Also, for using subdomains, you actually want ".yoursite.com" instead of "*.yoursite.com"
Offline
jvvg wrote:
XenoK wrote:
GeonoTRON2000 wrote:
As long as they're on the some server, you can use this:
Code:
session_id("YOUR SESSION ID HERE"); session_start();awesome! thanks!
Actually, no. The session ID is stored in a cookie. It will definitely not go across different domains (even on the same server), but might go across subdomains.
Also, for using subdomains, you actually want ".yoursite.com" instead of "*.yoursite.com"
It worked for me actually.
Offline
jvvg wrote:
XenoK wrote:
GeonoTRON2000 wrote:
As long as they're on the some server, you can use this:
Code:
session_id("YOUR SESSION ID HERE"); session_start();awesome! thanks!
Actually, no. The session ID is stored in a cookie. It will definitely not go across different domains (even on the same server), but might go across subdomains.
Also, for using subdomains, you actually want ".yoursite.com" instead of "*.yoursite.com"
*facepalm*
No, sessions are stored on the server.
Offline
GeonoTRON2000 wrote:
jvvg wrote:
XenoK wrote:
awesome! thanks!
Actually, no. The session ID is stored in a cookie. It will definitely not go across different domains (even on the same server), but might go across subdomains.
Also, for using subdomains, you actually want ".yoursite.com" instead of "*.yoursite.com"*facepalm*
No, sessions are stored on the server.
according to this: http://www.htmlgoodies.com/beyond/php/a … ssions.htm , the session id is stored in a cookie, but everything else is stored in the server.
Last edited by XenoK (2012-08-07 22:09:20)
Offline
XenoK wrote:
GeonoTRON2000 wrote:
jvvg wrote:
Actually, no. The session ID is stored in a cookie. It will definitely not go across different domains (even on the same server), but might go across subdomains.
Also, for using subdomains, you actually want ".yoursite.com" instead of "*.yoursite.com"*facepalm*
No, sessions are stored on the server.according to this: http://www.htmlgoodies.com/beyond/php/a … ssions.htm , the session id is stored in a cookie, but everything else is stored in the server.
*facepalm*
I mean the session data. (such as variables)
Offline
GeonoTRON2000 wrote:
XenoK wrote:
GeonoTRON2000 wrote:
*facepalm*
No, sessions are stored on the server.according to this: http://www.htmlgoodies.com/beyond/php/a … ssions.htm , the session id is stored in a cookie, but everything else is stored in the server.
*facepalm*
I mean the session data. (such as variables)
:{ ok, my question has been answered and solved...
Offline