PUBLIC void destroySession() { HttpSession *sp; HttpConn *conn; conn = getConn(); if ((sp = httpGetSession(conn, 0)) != 0) { httpDestroySession(sp); } }
/* Destroy a session and erase the session state data. This emits an expired Set-Cookie header to the browser to force it to erase the cookie. */ PUBLIC void destroySession() { httpDestroySession(getStream()); }
/* Log the user out and remove the authentication username from the session state */ PUBLIC void httpLogout(HttpConn *conn) { conn->rx->authenticated = 0; httpDestroySession(conn); }
PUBLIC void espDestroySession(HttpConn *conn) { httpDestroySession(conn); }