It seems the SESSION variables I'm storing using PHP on http://mysite.com are not being stored as session variables on http://www.mysite.com (notice the www.). Is this something I'm doing wrong, or is this how its meant to be? Any way I can have the variable stored for both?
Thank you for your response! I placed it in my login.php file and my index.php file for test purposes, at the beginning of each file, before session_start(), and I still have my problem! Any other solutions?
As mastermunj correctly stated, this is the solution for your problem. See http://www.php.net/manual/en/book.session.php#85224 which describe the same.
Thank you, I see that it should work, I must not have been implementing it correctly. Anyway, I decided to go with a 301 redirect from http://mysite.com to the www. version. Thanks!