Click to See Complete Forum and Search --> : session_start between two servers


hazmtrl
12-11-2003, 04:43 PM
I am working on a user authentication system between two seperate systems using php. 1st is www.mysite.com, 192.168.0.66 (192.* for examples, servers have a public IP) and 2nd is upload.mysite.com (192.168.6.159). When the user logs in NOW he is directed to www.mysite.com/upload and session_start accepts and works fine. When I move the upload page to the 2nd server I get errors that cookies could not be sent and headers have already been sent. I have crawled google and O'Reilly books but I can only see using sessions in local machines. Has anyone successfully got sessions working on remote systems, and mind sharing? Thanks for your help.

theN
12-12-2003, 02:48 AM
Hi

Please post the 'session' code.

Has anyone successfully got sessions working on remote systemsplease elaborate on that.

If the session uses cookies, please check the following PHP settings - 'session.cookie_path' and 'session.cookie_domain'.

regards
akr