Apache2::AuthCookie

A

Alma

Hi All,

I am having difficulty in implementing Authcookie concepts in my
project.
I am using mason components so my loginscript says likt this.

Here is my conf file.

PerlModule HTML::Mason::ApacheHandler
PerlModule PosterJournal::AuthCookieHandler

<Location /htdocs/>
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
AuthType PosterJournal::AuthCookieHandler
AuthName "Posterjournal Unauthentication"
PerlFixupHandler
PosterJournal::AuthCookieHandler->recognize_user
</Location>

<Location /htdocs/logged_in>
SetHandler perl-script
AuthType PosterJournal::AuthCookieHandler
Authname "PosterJournal"
PerlAuthenHandler
PosterJournal::AuthCookieHandler->authenticate
PerlAuthzHandler
PosterJournal::AuthCookieHandler->authorize
require valid-user
</Location>

PerlSetVar PosterJournalLoginScript /htdocs/
leftpanel-login.mas

# handle posted data from the login form
<Location /htdocs/authcookieloginsubmit> #
authcookielogingsubmit
AuthType PosterJournal::AuthCookieHandler
AuthName "PosterJournal"
SetHandler perl-script
PerlHandler PosterJournal::AuthCookieHandler-
</Location>

..In my leftpanel-login.mas i have included this lines

<form action="/htdocs/authcookieloginsubmit" method="POST">
<input type="hidden" name="destination" value="/htdocs/logged_in/
yourexistingposters.html">

Its working fine as for the first time when we restart apache server
but if we provide invalid users it dispalys the source code of the
index.html for which i have this leftpanel-login.mas as a part.

How to handle if the user has entered the invalid users then i want it
to redirect it to the relogin.html.

Any help regarding this will be much appreciated.

regards,
Alma
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top