I guess I'm a little bit out to sea on this new Session taglib. I can sort of 
get something to try to happen, but either I really misunderstand something 
in configuration land, or I have a bug someplace, or else I don't really 
understand using the Auth taglib.

Just wondering if anyone has an example of a working setup...

I built a bit of a test configuration to try to get session state working, 
like so:

I have an XSP page like this.

<?xml version="1.0"?>
<?xml-stylesheet href="." type="text/xsp"?>

<xsp:page
        language="Perl"
        xmlns:xsp="http://apache.org/xsp/core/v1";
        xmlns:session="http://www.apache.org/1999/XSP/Session";
        xmlns:auth="http://www.creITve.de/2002/XSP/Auth";
        xmlns:global="http://www.creITve.de/2002/XSP/Global"; >

        <page>
                <global:set-attribute name="foobar">Stuff</global:set-attribute>
                <global:get-attribute name="foobar"/>
        </page>

</xsp:page>

And thus in my httpd.conf (where /protected/theabovexsp.xsp is the path to my 
xsp test page).

PerlModule Apache::Filter
PerlModule AxKit
PerlModule Apache::AxKit::Plugin::Session
PerlSetVar AuthCookieURLDebug 5

<LOCATION /protected>
        AuthType Apache::AxKit::Plugin::Session
        AuthName AxKitSession
        PerlAuthenHandler Apache::AxKit::Plugin::Session->authenticate
        PerlAuthzHandler Apache::AxKit::Plugin::Session->authorize
        PerlSetVar AxKitSessionDir /home/tharter/httpd/sessions
        PerlFixupHandler Apache::AxKit::Plugin::Session->recognize_user
        PerlSetVar AxKitSessionGuest guest
        PerlSetVar AxKitSessionGlobal 0
        PerlSetVar AxKitSessionLoginScript NONE
        AxAddXSPTaglib  AxKit::XSP::Sessions
        AxAddXSPTaglib  AxKit::XSP::Auth
        AxAddXSPTaglib  AxKit::XSP::Global
</LOCATION>

I can get the <global:get-attribute/> tag to return whatever value I assign, 
but no persistence. I don't get it. Apache::Session just seems to never want 
to create a session at all. Now I had Apache::Session::File working fine with 
Mike's old Session taglib, but switching to the new one, nada.

When I tried setting up Auth with a login.xsp script I could get the form to 
come up, but then I ended up with the same problem, and no session id cookie 
ever seems to get created. Any BASIC things that I need to do here? I know 
there are a million variables, but I get the feeling I'm just missing the 
boat on something here...

Thx guys.


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

Reply via email to