Frequently Asked Questions v2 |
FAQ Main / Answer Detail |
How do I create a Reader Mamagement logout function?
Author: jason |
|
If you realy think you need a logout, you have to create a
special directory
and Logout page under the restricted area of your
website. I've set up a little
example here http://marek.greennet.org.uk/protect/
type
jason:jason and you get in. Than you can click on logout ant it will
take you to the logout page. The trick is that the page is under the same
realm,
so in fact you relogin as user "logout" with
password "logout"
http://logout:logout@marek.greennet.org.uk/protect/logout/logout.html
http://logout:logout@marek.greennet.org.uk/protect/logout/logout.html">http://logout:logout@marek.greennet.org.uk/protect/logout/logout.html>The .htaccess file for the /protect/logout area looks like this
AuthType Basic
AuthName "Authenticate yourself"
AuthUserFile /home/httpd/htdocs/marek.gn.apc.org/protect/logout/.htpw
Require user logout
The
/home/httpd/htdocs/marek.gn.apc.org/protect/logout/.htpw contains only
user logout (the file was created using htpasswd), and only this user is
allowed
here.
Programmer's Notes: For some browsers this does not work - This is a work around and should be revisited. There are some plan for doing a PHP based permissions for Reader Managment.
|
Last Edit: Aug 17 2011
<aafaq id=2004> ~ToDo: 2004 How do I create a Reader Mamagement logout function? </aafaq>
This FAQ interface was developed by Jason at Commons.ca
|
APC
ActionApps is a free software content management system initiated by
the Association for Progressive Communications (APC) APC - Internet and ICTs for social justice and development |