cyphix Posted June 10, 2010 Posted June 10, 2010 Hey guys..... a client of mine has the site http://pwnedtshirts.com/ & it seems the first time you visit the site, any link you click off of the home page will just redirect you back to the home page; click a link again & it will work. Now...... after much research & looking at the code I am led to believe this is because ALL pages will be redirected to index.php - via navigate.php - UNLESS they have some sort of session variable set...... however these session variables are ONLY set if the script finds the cookies.... this is a bit silly as even if the cookies are set on the first page load the cookies can't be used until the NEXT page load.... which is why everything works as it should after the first visit to the site. I'm sure others have had this problem too..... plz help!
cyphix Posted June 13, 2010 Author Posted June 13, 2010 Really need help with this.... can somebody plz help!?
BryceJr Posted June 19, 2010 Posted June 19, 2010 In a standard oscommerce, if "force cookie use" is enabled, guests can still browse the site but will not be able to purchase unless cookies are enabled in their browser. The site you mentioned will not let guests get passed index.php(browsing forbidden) unless cookies are enabled or cookies from previous visit to the site are kept. ... which is why everything works as it should after the first visit to the site. This works on the assumption that everybody will keep their cookies of your site and have cookies enabled in their browsers all the time. Hey guys..... a client of mine has the site http://pwnedtshirts.com/ & it seems the first time you visit the site, any link you click off of the home page will just redirect you back to the home page; click a link again & it will work. Now...... after much research & looking at the code I am led to believe this is because ALL pages will be redirected to index.php - via navigate.php - UNLESS they have some sort of session variable set...... however these session variables are ONLY set if the script finds the cookies.... this is a bit silly as even if the cookies are set on the first page load the cookies can't be used until the NEXT page load.... which is why everything works as it should after the first visit to the site. I'm sure others have had this problem too..... plz help! ...and the question is
cyphix Posted June 20, 2010 Author Posted June 20, 2010 Thank you for the response. The question is how do I allow users to browse the site properly (get past index.php) without having existing cookies?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.