Don’t bother with the simpleSessionGet, instead do what WordPress itself does and use a get parameter
e.g.
$current_url = $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
wp_redirect( get_permalink(37).'?redirect_to='.$current_url);
Then in your redirect, do something similar to:
wp_redirect( $_GET['redirect_to'] );