homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
referer
trying to return to page called from
ricksum




msg:4629359
 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




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved