justinede Posted May 2, 2008 Share Posted May 2, 2008 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 More sharing options...
peranha Posted May 2, 2008 Share Posted May 2, 2008 Do not double post, this is the same as your last post. Check that one for answers. Link to comment https://forums.phpfreaks.com/topic/103802-session-redirect-help/#findComment-531411 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.