Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies


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


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

Protected page code follows


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)


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

joined:Aug 10, 2004
votes: 61

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