I am creating a site that has a main page www.widgets.com that people login from. After they login the database has the location the user should be taken to. It connects and does everything correct and takes me to city.widgets.com. From there it says the user does not have access. I checked the session variables and they are empty. Any idea how I get the sessions to register correctly from the main domain to the subdomain? this is the way i am setting my cookie setcookie("lr_user", $username, $duration, "/", .widgets.com); PHP:
Is the fact that you don't have quotes around '.widgets.com' a typo or just an error in the code? If it's a typo, please copy and paste the code as opposed to just retyping it. If that's how the code is, what happens if you put the quotes around it?