Hi, could someone please give me an example on session_regester & session_is_regestered but with more than 1 variable?
what i want is to use session with more than 1 variable.
thank u.
You can add session variables like this ...
$some_var_one = "Test Content"; $_SESSION["var_one"] = $some_var_one; $some_var_two = "More Test Content"; $_SESSION["var_two"] = $some_var_two;
is this what you mean or am i way off?
dont forget session_start(); at the very top of the document.
adding to what "madwormer2" has said - every page that uses the sessions that is, not just the index page...