fixed Flask 0.10.1 session issue.