Jump to content

session redirect HELP


justinede

Recommended Posts

what do i change to this code to put on my index so if there loged in already it just goes to index1.html

 

<?

session_start();

if(!session_is_registered(myusername)){

header("location:index.html");

}

?>

 

that makes it so if they try to go to index1 it send them to index to login. but if there already logged in what makes them go to index1.html

Link to comment
https://forums.phpfreaks.com/topic/103802-session-redirect-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.