Session rewrite
Session test