sessions: redirect on variable