I want to redirect the user after login to the page he was seeing before. So I set the URL to:
return array(path=>$_SESSION['login_page']);
(or it should be enough return $_SESSION['login_page'];)

After saving I take another Browser and click the login button. Its working fine. I log out and want to log in from another page ... its not working with the new destination (it uses the old one).

Drupal is in normal chaching mode. But also it does not seem to work if I switch off caching.

Comments

ardas’s picture

Status: Active » Closed (won't fix)

In order to redirect user to the page he was before just uninstall the module or configure it NOT to perform redirect.