sharper
May 16th, 2008, 08:59 AM
Greetings,
I'm using a php cookie to maintain the website's menu state.
currently I am setting the cookie in a php file, but the init is running everytime I have a page reload which is not good. I need this init to run just once during a session. I tried using a session variable instead, but the same problem exists.
My question is: how can I init the cookie's value just once before the page loads?
thanks in advance,
sharper
I'm using a php cookie to maintain the website's menu state.
currently I am setting the cookie in a php file, but the init is running everytime I have a page reload which is not good. I need this init to run just once during a session. I tried using a session variable instead, but the same problem exists.
My question is: how can I init the cookie's value just once before the page loads?
thanks in advance,
sharper