| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|admin login redirect|
| 8:09 pm on Sep 30, 2012 (gmt 0)|
What is the script for redirecting visitors to where they were trying to go.
E.g. someone goes to /admin/edit-page.php, but they are not logged in to the admin, so they are redirected to admin/login.php. Then when they log in they are redirected to /admin/edit-page.php
| 2:10 am on Oct 1, 2012 (gmt 0)|
You can use url parameter, eg: admin/login.php?redirectUrl=edit-page.php.
Then, after login successfull, check isset(redirectUrl) then redirect to it.
| 8:43 am on Oct 1, 2012 (gmt 0)|
how does it pick up the edit-page.php code in the first place? $_SERVER['http_referrer']?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved