Remove some flash notices and fixed session destory redirect.