Kjetil Kjernsmo > AxKit-App-TABOO-0.52 > AxKit::App::TABOO::AddXSLParams::Session

Download:
AxKit-App-TABOO-0.52.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.1   Source  

NAME ^

AxKit::App::TABOO::AddXSLParams::Session - Minimal session parameter XSLT access for TABOO

SYNOPSIS ^

  # in httpd.conf or .htaccess
  AxAddPlugin AxKit::App::TABOO::AddXSLParams::Session

DESCRIPTION ^

AxKit::App::TABOO::AddXSLParams::Session provides a way to pass the critical session info to XSLT params.

Like A:A:P:A:Request, you can access session values by defining a specially named XSL parameter. These three are available, and can be used as the final example indicates:

  <xsl:param name="session.id"/>
  <xsl:param name="session.authlevel"/>
  <xsl:param name="session.loggedin"/>

  ...
  <xsl:value-of select="$session.loggedin"/>

These parameters can supply the session ID, the authorisation level and the username of the logged in user. If there is no logged in user, the latter will return 0 and guest respectively.

SEE ALSO ^

Apache::AxKit::Plugin::AddXSLParams::Request

FORMALITIES ^

See AxKit::App::TABOO.

syntax highlighting: