Added session timeout functionality