Hi,
My website creates a session cookie when the user logs on, which is located on the root directory of the website.
As soon as the user clicks on a link that goes to a different folder ie. www.site.com\admin or somthing like that, the session no longer is reconized by the root site ie. www.site.com and the user is no longer logged into the site.
The Session cookie is still there, and the only php code on www.site.com\admin\index.php is as follows
[php]<?php session_start(); ?>[/php]
which causes the session to break,
if this code is not on the www.site.com\admin\index.php page, the session is not broken.
If i move the index.php from the admin folder to the root directory renamed as index1.php the session does not break. if it is names index.php on the root directory it still dosent break the session.
The only change is the folder from root to admin which seems to break the session.
when the user logs in the only variables that are set is a $_SESSION[‘username’] no other variables to the session is set.
Hope that is clear enough for you to understand
Thanks in advance
Kyle.