insert and update logout for ci_session logs