Sessions, subdomains, not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pkzorn
Forum Newbie
Posts: 2
Joined: Sun Nov 09, 2003 11:21 pm

Sessions, subdomains, not working

Post by pkzorn »

Hi I am running into a issue with my sessions to span multiple subdomains.

I am using this code.

їphp]
ini_set("session.cookie_domain",".activepress.com");
session_start();
ї/php]

The sessions works fine they span the subdomains and work good, on IE (Mac and PC) and Opera, But not on Mozilla (PC, MAC, LINUX) or Safari.

Not sure why this is happening, i didn't think at that level the browser actually matters. Any help would be great. I have tried also.

їphp]
ini_set("session.cookie_domain","activepress.com"); //WITHOUT PERIOD
session_start();
ї/php]

It doesn't seem to matter, any help would be great. Thanks.

?>
pkzorn
Forum Newbie
Posts: 2
Joined: Sun Nov 09, 2003 11:21 pm

Post by pkzorn »

Finally got it to work, sort of it know works on Mozilla (PC and MAC) but not on Mozilla (Linux) and also on Safari. I am stumped why this is happening on browsers like that.
Post Reply