At 18:04 27.11.2002, 1LT John W. Holmes spoke out and said:
[snip]
>I'm surprised that is actually working, since you never register $auth into
>the session.
[snip]
Nothing to do with session... Here PHP_AUTH is used,
CTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 11:53 AM
Subject: [PHP] Session End
Hi
I am have created an authentication system, wherein the user is
authenticated on the basis of a MySQL database.
Here is the code
You are authorized!';
}
?>
However this keeps the u
Hi
I am have created an authentication system, wherein the user is
authenticated on the basis of a MySQL database.
Here is the code
$auth = false; // Assume user is not authenticated
if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW)) {
// Connect to MySQL
mysql_pconnect( 'localhost
Assuming you are talking about PHP4 session.
Garbage collection is done by the module.
Read
http://www.php.net/manual/en/ref.session.php
Regards,
--
Yasuo Ohgaki
""deco"" <[EMAIL PROTECTED]> wrote in message
98dtge$2ad$[EMAIL PROTECTED]">news:98dtge$2ad$[EMAIL PROTECTED]...
>
> is there some k
is there some kind of function or event launched when a session times
out??
something like session_on_end() ??
i'm using a flag on a database to tell if a user is visiting the page and
i would like to make him offline when his session expires...
--
PHP General Mailing List (http://www
5 matches
Mail list logo