Jump to content

Managing session of 'mydomain2.com' from 'mydomain1.com'


guarriman

Recommended Posts

Hi.

Working with PHP 4, I want to manage sessions for users visiting 'mydomain2.com' by using a PHP script within 'mydomain1.com' (They both are in the same web server)

I find some problems, cause 'mydomain1.com' script doesn't identify user visiting 'mydomain2.com'. I tried to use
-------
php_value session.cookie_domain "mydomain1.com"
------
within 'mydomain2.com' Apache configuration, but it doesn't work (I suppose it doesn't anything to do with cookies, right?).

Any suggestion is appreciated. Thank you very much.
in cookies you can specify 2 domain name to transfer your session from one domain to other one if they exist on the same server.

setcookie("usuario", "Luis", time()+3600,"/","domain2.com");

and use cookie everywhere to manage session.using $_COOKIE[]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.