Пример #1
0
PUBLIC void destroySession()
{
    HttpSession *sp;
    HttpConn    *conn;

    conn = getConn();
    if ((sp = httpGetSession(conn, 0)) != 0) {
        httpDestroySession(sp);
    }
}
Пример #2
0
/*
    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());
}
Пример #3
0
/*
    Log the user out and remove the authentication username from the session state
 */
PUBLIC void httpLogout(HttpConn *conn)
{
    conn->rx->authenticated = 0;
    httpDestroySession(conn);
}
Пример #4
0
PUBLIC void espDestroySession(HttpConn *conn)
{
    httpDestroySession(conn);
}