Hi all!

In my newly released TABOO 0.082, I have bumped into a problem I haven't 
been able to figure out on my own. 

I have an XSP that generates a menu, and the idea is to include this 
menu on every page by calling it within a document() in the 
transformation to XHTML. 

To see exactly what happens, I have put the code at 
http://demo.kjernsmo.net/ If you go there, you'll get simple login form 
in addition to some demo stuff. You can try it out by using username 
bar and password trustno1 . You'll get a cookie. When you go back to 
the front page and reload it, the form is still there. Shouldn't be, it 
should be a new menu for the user, like it is in 
http://demo.kjernsmo.net/menu.xsp

I'm using BasicSession, and I'm storing the username in credential_0 in 
the session. In addition, I'm storing an authlevel, which determines 
what the user gets access to. What I see in the logs is that if I go 
directly to http://demo.kjernsmo.net/menu.xsp all this found in the 
session like it should be. If I go directly to the front page, which 
calls the menu.xsp through a http-request in the stylesheet at 
http://search.cpan.org/src/KJETILK/AxKit-App-TABOO-0.082/htdocs/transforms/xhtml/index.xsl
this session information is not present. That appears to be the direct 
cause...

But since I'm using a completely new http request, I really don't 
understand why the session information isn't available to the 
menu.xsp... Any suggestions...?

For those feeling like looking at more source code, the menu.xsp is at 
http://search.cpan.org/src/KJETILK/AxKit-App-TABOO-0.082/htdocs/menu.xsp
The main page is veeery simple at the moment, it is an XSP too allthough 
it doesn't need to be, might do it differently later on, but it is at 
http://search.cpan.org/src/KJETILK/AxKit-App-TABOO-0.082/htdocs/index.xsp
and stylesheets therein... :-) 
The somewhat relevant taglib, which does the checking of what users are 
authorised to do, checking passwords and stuff like that is at:
http://search.cpan.org/src/KJETILK/AxKit-App-TABOO-0.082/lib/AxKit/App/TABOO/XSP/User.pm

Cheers,

Kjetil
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/        OpenPGP KeyID: 6A6A0BBC

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

Reply via email to