Date: 07/20/00
- Next message: Kirk Ismay: "Re: [phplib] Logging out"
- Previous message: Kirk Ismay: "Re: [phplib] templates & oohforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This may help http://support.indtech.edu/~tbrown/default_login OR
http://support.indtech.edu/~tbrown/default_login/login_demo.tar.gz
At the site you will find a working demo (at least for awhile) and two
sources.
login.php - the demo username george, password george
login.txt - the source for login.php, you may have to use view source to see
everything
local.inc.excerpt.txt - athe relevenat excerpt from my local.inc
I extend one of the auth classes with two methods:
relogin_check(), which forces a login if the "Login" button was pressed
relogin_button(), which displays the login/logout button
-----Original Message-----
From: Kartic Krishnamurthy [mailto:kaygee <email protected>]
Sent: Thursday, July 20, 2000 12:10 PM
To: Phplib Mailing List
Subject: [phplib] Logging out
Importance: High
Hi List,
This is a question on logging out a user.
I have a link on my page to logout.php3. Upon clicking on the link, the
user gets logged out. Then if the user reloads the page,
it takes him to the login screen (loginform.ihtml) but here is where my
problem. After logging in using a valid user/pass, the user
gets logged off again (as the page reloaded was logout.php3).
I do not want that to happen. Instead, if the user reloads the logout.php3
(in which state he is not yet authorized), he should get
the login page but then be taken to the main page of my application.
I also tried another route, which did not work either. After doing a
$auth->logout(), I used $auth->login_if(1). This way, it
showed the login box, but would let me login (kept telling that the
user/pass is invalid!).
Any suggestions?
Thanks
--Kartic
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Kirk Ismay: "Re: [phplib] Logging out"
- Previous message: Kirk Ismay: "Re: [phplib] templates & oohforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

