Welcome to WebmasterWorld Guest from 54.160.163.163

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

referer

trying to return to page called from

     

ricksum

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



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 phranque is a WebmasterWorld Top Contributor of All Time 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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month