Hi James,

James Harris wrote:

> Hi
>
> I am trying to figure sessions out and the site docs seem contradictory.
> For example, does it matter whether I use the namespace xmlns:xsp-session or
> xmlns:session in my xsps as these are both given in examples.

No, it doesn't, if you declare that namespace which you use.

> Do I also
> need to use the namespace declaration in my xsl stylesheets?

Yes, you need, if you want to be able to refer to elements from this namespace
in your xsl templates.

>
> I have a static html 'login' page which just posts a username and password
> to an xsp.  I have some debugging code in the xsp to just display these
> which it duly does.  I also have a Session Id=<xsp-session:get-id/> in the
> xsp to print out the session id but this turns out blank on the web page.  I
> have an xmlns:xsp-session="http://apache.org/xsp/session/2.0"; and
> create-session="true" declaration in the name space of the xsp.  I also have
> a <map:redirect-to session="true" uri="index.html"/> at the point of entry
> to the website in the sitemap.
>
> There must be something I am missing as the session id does not seem to be
> preserved when I get to the xsp.

Try the following just for checking:
<sid><xsp-session:get-id as="xml"/></sid>

Roman.

> I can add to the session and retrieve from
> it in the xsp though.  Do I need to ditch the static login page and use an
> xsp instead with something like this from the cocoon examples:
> <session:encode-url href="sessionpage.xsp">Follow me!</session:encode-url>
>
> Cheers in advance for any help.
> Jim
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to