Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Mod_Perl Handlers and URL Based Authorization: What's The Best Aproach For A Rank Based Forum?

by rdfield (Priest)
on Feb 11, 2005 at 09:40 UTC ( [id://430027]=note: print w/replies, xml ) Need Help??


in reply to Mod_Perl Handlers and URL Based Authorization: What's The Best Aproach For A Rank Based Forum?

Your second idea is the one to go for. Whether or not the URL is handled by Perl or is a static page or even by something else, it doesn't matter to the Auth(z|en) handler, just the cookie and/or the URL as entered by the user is all you need.

A large site I'm working on allows anyone, registered or not, to view any page. However, if you're logged in you see potentially different content, and even further, depending on the level of access granted the content will be even further tailored.

All handled through the magic that is mod_perl and HTML::Mason.

There's definitely no call for constantly re-starting a mod_perl enabled Apache webserver just because you've added a new directory dynamically. All you need to do is build a small form for an administrator to set paths/access levels, store it in a database for use within your Auth handlers.

rdfield

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430027]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found