How do I use session variables with a redirect?
my code looks like:
on page 1
session_name("user");
session_start();
session_register("usernamesess");
session_register("usertypesess");
header("Location: page2.php");
depending on the type of user he will be redirected..
on page 2
session_start("user");
$temp = $HTTP_SESSION_VARS["usernamesess"];
I get this error
Warning: Cannot send session cache limiter - headers already sent (output started at /home/67-373/team03/public_html/FinalWebsite/teamadmin.php:16) in /home/67-373/team03/public_html/FinalWebsite/teamadmin
Its probably because of the other header I sent previously.... the functionality is fine I do retrieve the correct contents of usernamesess..I also do not care about the cache limiters
So either way..could some1 tell me the correct way to do this.. or how to not display the warnings