Welcome to WebmasterWorld Guest from 54.146.221.231

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

referer

trying to return to page called from

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

New User

joined:June 24, 2013
posts: 27
votes: 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.
7:30 pm on Dec 10, 2013 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10542
votes: 8


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