Thanks for this…I think this is a good workaround.
However, is there a problem with updating wp-login?
I’d like to be able to use the “meta” widget instead of custom creating this login feature.
Also, as a clarification, I used PHP_SELF on the previous page, not on wp-login.
So the session variable $_SESSION[‘variable’] is set to the previous page not wp-login.
The question is if I can simply update wp-login to go to the previous page using this session variable. Is this possible?