Hello!
I have a challenge. I've written a shopping system that has been working great for over a year -- but now has become unpredictible. The store works on Apache on Windows and Unix, PHP 4.0.1 through 4.2.2.
Example:
I upload a copy of a functioning store to a new web site and sessions 'sometimes' don't work.
I upload the store to a new sub-folder of the same site and the sessions work fine -- this trick only works sometimes.
All the stores work fine on IE5/Mac, IE5/Win98.
The stores work fine on IE6/WinXP with cookie security set to 'highest' but anything less it does not work.
I'm thinking there's a bug in IE on WinXP? Maybe PHP doesn't recognize cookies properly with this system?
Here's the code that is in question:
// in config.php for each page:
$SESSION["VDG_SESSION"]["previous_page"] = $SESSION["VDG_SESSION"]["current_page"];
$SESSION["VDG_SESSION"]["current_page"] = $SESSION["VDG_SESSION"]["homepath"].$HTTP_SERVER_VARS["REQUEST_URI"];
// in various other pages:
<a href="<? echo $_SESSION["VDG_SESSION"]["previous_page"]; ?>"><span class="Button2"> Continue Shopping </span></a>
Any help would be greatly appreciated!
Thanks,
-Mark