I want to share the session between www.abc.com and login.abc.com.
i've used this code. i can't edit php.ini directly as my web host wont allow it.
<?php ini_set("session.cookie_domain", ".abc.com"); session_start();?>
it seems to work fine for a day.
today everything is a mess. when a user log in in login.abc.com and click on a link (to www.abc.com) or open a new www.abc.com page, login.abc.com will log out automatically. it will not pass the session to www.abc.com at all.
i've looked and googled for solutions on multiple domain sharing. but not even one worked for me.
i've also tried using this codes.
<?php
session_set_cookie_params(0 , '/', '.abc.com', time()+3600);
session_start();
?>