This topic is locked
[SOLVED]

 Redirect guest to different page

1/19/2010 10:45:18 AM
PHPRunner General questions
G
glazer author

I want to have a guest directed after logging in to a page called "Information" while all other users automatically open a page called "Register". How do i achieve this?

G
glazer author 1/20/2010



I want to have a guest directed after logging in to a page called "Information" while all other users automatically open a page called "Register". How do i achieve this?



I have now solved this by the following.
if ($_SESSION["AccessLevel"] == ACCESS_LEVEL_GUEST) {

header("Location: Information.php");

exit();

}