I have a problem regarding the revisit of the main menu page from another subsequest pages.
The main Menu is called from a logon page 1st time.
The main menu authenticates the user/password and stores info in encypted form in cookies.
1st time it works perfect. Upon revisiting the page, say a Go Back to Root Menu(submit button) from some other page, the set cookies are not to be executed again.
If i use a variable to check this :
e.g. if ($revisit != 'yes') {
setcookie("test", $test, time()+1800);
}
The above does not work for 1st time itself, even if revisit value is not set.
any idea how to solve this trivial problem of mine ?
Thanks in advance.