disable/remove redirect to the last page

Hey Karls,

You can do this by removing this code from your login page:

  // save url of referring page so we can redirect user there after login
  if (!getPrefixedCookie('lastUrl')) { setPrefixedCookie('lastUrl', @$_SERVER['HTTP_REFERER'] ); }

So this cookie variable will store the last page the user came from, and when they login it will be used to redirect to that page. By removing this, the user will be redirected to the default post login URL set in the website membership plugin:

// After login, user gets redirected to the last page they were on (if defined), the url below, or to /
$GLOBALS['WEBSITE_LOGIN_POST_LOGIN_URL']  = '/';

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com

Hi Greg,

Thank you for the clarification!

Karls