[Phplib-users] Re: Default Auth Help
Brought to you by:
nhruby,
richardarcher
From: Dima N. <Dim...@lu...> - 2001-09-08 16:12:52
|
> I need a little help with a problem I'm having. It's probably really simple, > but I can't seem to hack my way through it. > > I am using default authentication on a site. I have a link at the top of the > page that can be used to login. When you click the link, it takes you to a > page that does a: > > page_open(...); > $auth->login_if ( $auth->auth[uid] == "nobody" ); > page_close(); > > This pulls up auth's corresponding login dialog. The problem is, I have a > cancel button on this dialog. No matter what I put behind the cancel, I > can't get rid of the login dialog (unless I enter a valid username and > password). I'm currently trying to make the cancel button link to a logout > page that does: > > my_page_open(); > $auth->logout (true); > my_page_close(); > > But this doesn't work. The logout page apparently generates another login > page before it gets to the logout() function. > > Thanks in advance for ANY help! > > -bpopp I think "cancel_login" may be of help. (But I can't seem to find the docs for PHPLib anymore?) -- :D_ima Mr. Dima Nemchenko <Dim...@lu...> "Open source code is like lobster--most people who haven't tried it don't like the way it looks. But those who try it, love it." |