Deal with expired session issue