[prev in list] [next in list] [prev in thread] [next in thread] 

List:       phplib
Subject:    Re: [PHPLIB] authentication
From:       Alexander Aulbach <ssilk () ssilkon ! franken ! de>
Date:       1999-05-25 20:56:11
[Download RAW message or body]

On Tue, 25 May 1999, Alexander Aulbach wrote:
}I have a problem like this:
}
}if ($act=="logout") {
}    $sess->delete();
}    $act="";
}    exit;
}}
}
}Produces an error:
}Warning: Oops, php3_SetCookie called after header has been sent in
}session.inc on line 150
}
}This is the line, where the session cookie is set to "".
}
}The problem is, that a logout can only be made, if I know my session id.
}This requires $sess-start() to be opened. And start() will sent some
}http-headers.
}
}Any solutions?

Sorry, me was wrong. This is the correct code:

if ($act=="logout") {
        $auth->logout();
        $auth->start();
}

Work perfectly for relogin with a new user name...

Is there any security thing I have to look for, cause the session is not
destroyed?


-- 

SSilk - Alexander Aulbach - Herbipolis/Frankonia Minoris - (0931)22032

-
PHP3 Base Library Mailing List. Send messages to <phplib@shonline.de>.
To unsubscribe, send "unsubscribe" to <phplib-request@shonline.de> in
the body, not the subject, of your message.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic