Forum Moderators: phranque

Message Too Old, No Replies

referer

trying to return to page called from

         

ricksum

5:10 pm on Dec 10, 2013 (gmt 0)

10+ Year Member



I have a protected page that requires a certain level to access and the basic code is

prioritylist.php
<?php
include("mylogin/include/session.php");

if( !$session->overUserlevel(4)){
echo "You are NOT logged in OR your access level is too low!<br /><bf />";
}
else {
?>

Protected page code follows

<?php
}
?>

What I want to accomplish is if a login is required (main.php) after logging in I want to return to prioritylist.php
Any and all help appreciated.

phranque

7:30 pm on Dec 10, 2013 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



send a 301 status code followed by a Location: header referring to the fully qualified url for the prioritylist.php script.