Welcome to WebmasterWorld Guest from 54.144.231.243

Forum Moderators: coopster & jatar k

admin login redirect

   
8:09 pm on Sep 30, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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)

WebmasterWorld Senior Member 10+ Year Member



how does it pick up the edit-page.php code in the first place? $_SERVER['http_referrer']?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month