Added session expire function