change the session from cookie to file