Hi. I am making a website builder, and for some reason, when I make a session on site.com, then the session doesn't work on builder.site.com.
The code I am using in front of every page is:
session_set_cookie_params(1440, "/", ".red-host.org", false, false);
session_start();
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
And the code that makes the session is:
session_set_cookie_params(1440, "/", ".red-host.org", false, false);
session_start();
$_SESSION[$_SESSION_NAME]="$_POST[username]";
Any advice or help would be appreciated. Thanks.