Ran across something that seems strange to me...
I have a script that uses cookies to authenticate users whenever a script is loaded.
1. user clicks on link, is taken to script.php.
- In script.php the first line is check($PHP_SELF) that checks the value of HTTP_COOKIE_VARS['nameofmycookie'] the value is decrypted and checked.
note: (The $PHP_SELF is used in case the user doesnt have a cookie, then the script writes a login form for the user with the form action set to the current script).
Well...
I have been running along smoothly until i started writing scripts in a subdirectory of the directory I have all my php scripts (that run well) (i'll call it the document root). As soon as a user using the script in the subdirectory clicks a link to a script in the document root, the cookie disappears.
Any similar experiences? I would like to eventually put my scripts in different directories in case i have to .htaccess restrict by path.
-n