View Full Version : Resolved I losing All Cookie when go to next page

10-17-2008, 01:38 PM
I'm using those function for Set And Get Cookie :


I set the cookie at inex.php and go to next page using that code :

window.location = 'index.php?p=2';
I lose all the cookie when I be in the next page !!

what's the wrong on my code ? :confused:

Philip M
10-17-2008, 05:57 PM
I don't see anything wrong with your code. Are you sure that you are calling the functions setCookie() and getCookie() correctly? The path must be set:-var path = '/';