On August 11, 2004 03:53 am, David J Craigon wrote:
> Using Apache::AxKit::Plugin::BasicSession. This is great, except I
> haven't been able so far to access the data outside of AxKit.

I haven't tried it myself, but instead of using 
Apache::AxKit::Plugin::BasicSession as an AxKit plugin, you can try setting 
it up in one of the mod_perl handler phases, just as long as it happens 
before the content phase.  This would cause it to fire on all requests, not 
just AxKit requests, and would set up the session object in the pnotes table.

Then, you should be able to use the methods provided in 
AxKit::XSP::BasicSession (e.g. 
AxKit::XSP::BasicSession::get_attribute("foo")).  I have a version of that 
module somewhere (I just checked CPAN, and it doesn't seem to be there) that 
allows you to construct a BasicSession object, enabling you to use it outside 
of AxKit.

Another possibility is to simply create your own Apache::Session handler, and 
store the session in $r->pnotes() (just look at the existing Plugin code to 
see how this is done).  However, done this way, you wouldn't get all the 
nifty options that the BasicSession plugin gives you (like last_modified 
time, etc).

-- 
Michael A. Nachbaur <[EMAIL PROTECTED]>
http://nachbaur.com/pgpkey.asc

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to