Date: 03/29/00
- Next message: postmaster <email protected>: "[PHPLIB] Re: RE: [PHP3] persistent data"
- Previous message: Björn Schotte: "[PHPLIB] Too long session.val with PHP4.0RC1"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
We are using the PHPLib authentication for our application. We are having a
problem with resting $auth->auth["uname"] after logging out and logging in as a
different username. The previous username as defined by $auth->auth["uname"] is
always displayed regardless of who has logged in via the login form.
----Details---
At the beginning of the page being called with HTML formatted contents we have
this:
<?
page_open(array("sess" => "Example_Session", "auth" => "Example_Auth", "perm" =>
"Example_Perm", "user" => "Example_User"));
?>
In the body, the page we have defined:
$username = $auth->auth["uname"];
In a separate file we call at the end of the page:
</html>
<?
$auth->logout();
page_close();
?>
But when going back to the application page we are correctly presented with the
login screen. Logging in a different user allows us to see the application
starting page - so far so good. The only problem is that the $username as
defined by:
$username = $auth->auth["uname"]; is still set to the previous user.
We are allowing the $username variable to be set each time the application
starting page is entered.
Bottom line: how can we reset the uname to the new logged in name?
Thanks,
Ed
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: postmaster <email protected>: "[PHPLIB] Re: RE: [PHP3] persistent data"
- Previous message: Björn Schotte: "[PHPLIB] Too long session.val with PHP4.0RC1"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

