set redirect variable befor session reset