willems Luc wrote:
>
> Hello ,
>
> I have a quistion abous $Session objects. Is it possible to us this objects
> in a custom Authentication handler.
>
> The idea is to use a ASP script to login the user and put some user info into
> the session object if the user is valid. After that i redirect the user 1
> level deeper. In this level only users with a valid session can acces any
> file (this includes html,asp and other files).
>
> the idea is to do somthing like
>
> $session = Apache::ASP->Session;
> blablabla
>
I have just added support for this kind of thing in
my dev version Apache::ASP 2.23
This is not optimized, where the ASP object will end up
getting created twice during the request, but for most
this would not be an issue. If the performance hit is
a problem, I will have to devise a cross handler
caching mechanism for the ASP object.
Here's the note from CHANGES so far:
+New API for accessing ASP object information in non content
handler phases:
use Apache::ASP;
sub My::Auth::handler {
my $r = shift;
my $ASP = Apache::ASP->new($r)
my $Session = $ASP->Session;
}
In the above example, $Session would be the same $Session
object created later while running the ASP script for this
same request.
I will send it to you separately. Also, I will send you
my latest MLDBM::Sync .15 on which Apache::ASP will depend
next release.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051