Beispiel #1
0
function user_logout()
{
    // global $allgAr;
    // $_SESSION = array();
    // $_SESSION['authgfx'] = $allgAr['gfx'];
    user_set_guest_vars();
    db_query("UPDATE `prefix_online` SET `uid` = " . $_SESSION['authid'] . " WHERE `sid` = '" . session_id() . "'");
    setcookie(session_und_cookie_name(), "", time() - 999999999999.0, "/");
    // if (isset($_COOKIE[session_name()])) {
    // setcookie(session_name(), '', time()-99999999999931104000, '/');
    // }
    // setcookie(session_und_cookie_name(), "", time()-999999999999, "/" );
    // session_destroy();
}
Beispiel #2
0
function user_logout()
{
    #global $allgAr;
    #$_SESSION = array();
    #$_SESSION['authgfx'] = $allgAr['gfx'];
    user_set_guest_vars();
    db_query("UPDATE prefix_online SET uid = " . $_SESSION['authid'] . " WHERE sid = '" . session_id() . "'");
    setcookie(session_und_cookie_name(), "", time() - 999999999999, "/");
    #if (isset($_COOKIE[session_name()])) {
    #  setcookie(session_name(), '', time()-99999999999931104000, '/');
    #}
    #setcookie(session_und_cookie_name(), "", time()-999999999999, "/" );
    #session_destroy();
}