Thanks for the response but I must say, I am a bonehead at work, let me get this straight on what you mean:
//The purpose of this script is to allow users to log in, if info is correct, you will go to new page, otherwise it will bounce you back to the login page.
//In my file on my main domain and a sub directory, I have this:
//location: gospelmania.com/ts/index.php says:
<?php
session_set_cookie_params(0, '/root/', '.gospelmania.com');
//Where root is the main directory holding all of the domains.
session_start();
$_SESSION['first_name'] = 'FirstName';
$_SESSION['last_name'] = 'LastName';
$_SESSION['path'] = 'ts1.gospelmania.com/test/tli.org';
header("Location: " . "/path/to/subdomain/");
?>
//In my file on my subdomain and its sub directory, I have this:
//location: ts1.gospelmania.com/test/tli.org/ -
index.php says:
<?php
session_start();
if(!isset($_SESSION['first_name'])) {
header("Location: " . "/path/back/to/first/page");
exit();
}
//More stuff
?>
Thanks again and I'll look forward to your reply!