how to use sessions...

Alexej Kubarev

New member
hmmz..this not really a PHP Security question thou.. but anyways:

#Starting a session, should be done on every page at the top

then simply check the $_SESSION['var_name_here'] for a value that will indicate the last accessed page, then assigne the new value to $_SESSION['var_name_here'] and redirect to a new page.. do the same thing for the rest of the pages :)