cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernhard Huber" <bh22...@i-one.at>
Subject Re: Problem with sessions on Cocoon 2
Date Fri, 14 Sep 2001 19:36:40 GMT
Does your browser allow session-cookies?
If not or may you have switched session-cookies off at your browser,
then you need use URL rewriting see
response.encodeURL(), respone.redirectEncodeURL()
for more info

----- Originalnachricht -----
Von: David Hénot <henot@sens3d.com>
Datum: Freitag, September 14, 2001 6:34 pm
Betreff: Problem with sessions on Cocoon 2

> Hello,
> 
> I'm having a problem trying to use sessions (precisely the session 
> validator 
> action) with cocoon 2.
> I tried to send a mail to the cocoon-users ML, but got no replies. 
> So I 
> upgraded to the beta2 (I started with beta1) and to a cvs snapshot 
> (dated 
> 09/12/2001) with no success, and as it looks (in my point of view) 
> like a bug 
> in cocoon, I decided to try cocoon-dev ... I would appreciate any 
> help and if 
> it's a bug in cocoon I will help to fix it.
> 
> I attached the mail sent to cocoon-users, so you can have all the 
> details, 
> but with the new logs generated by the cvs snapshot, the problem 
> is quite 
> clear :
> 
> ------ cocoon.log (some infos cut for readability) ------
> (...)
> Thread-56/DatabaseAuthenticatorAction: DBAUTH: authorized successfully
> Thread-56/DatabaseAuthenticatorAction: DBAUTH: session created
> Thread-56/DatabaseAuthenticatorAction: DBAUTH: propagating param 
> login=henotThread-56/DatabaseAuthenticatorAction: DBAUTH: 
> propagating param name=Hénot 
> David
> 
> (The session is created by DbAuthenticatorAction ...)
> 
> Thread-56/DefaultPool: Returning a 
> org.apache.avalon.excalibur.datasource.JdbcConnection to the pool
> Thread-56/sitemap_xmap: Action db-authenticator
> Thread-56/sitemap_xmap: Sitemap: session='true', redirecting to ''
> Thread-56/Cocoon: DEBUGGING INFORMATION:
> REQUEST: /sens3d/test/
> 
> CONTEXT PATH: /sens3d
> SERVLET PATH: /test/
> PATH INFO: null
> 
> REMOTE HOST: www.sens3d.com
> REMOTE ADDRESS: 80.65.225.100
> REMOTE USER: null
> REQUEST SESSION ID: a8u8scx0d1
> REQUEST PREFERRED LOCALE: en
> SERVER HOST: www.sens3d.com
> SERVER PORT: 80
> 
> METHOD: GET
> CONTENT LENGTH: -1
> PROTOCOL: HTTP/1.1
> SCHEME: http
> AUTH TYPE: null
> 
> CURRENT ACTIVE REQUESTS: 2
> MAXIMUM ACTIVE REQUESTS: 2
> 
> REQUEST PARAMETERS:
> 
> 
> SESSION ATTRIBUTES:
> 
> PARAM: 'name' VALUE: 'Hénot David'
> PARAM: 'login' VALUE: 'henot'
> 
> (So the session is present, or so it seems to me .... but a few 
> lines after I 
> see this : )
> 
> Thread-56/SessionValidatorAction: SESSIONVALIDATOR: validating 
> parameters 
> from given constraint-set is-logged-in
> Thread-56/SessionValidatorAction: SESSIONVALIDATOR: given set is-
> logged-in 
> contains 2 rules
> Thread-5Thread-5login (encoded in a string: false)
> Thread-5Thread-5name (encoded in a string: false)
> Thread-56/SessionValidatorAction: SESSIONVALIDATOR: all session 
> params 
> validated
> 
> (How could these parameters be anything else than strings ?)
> 
> ------------------
> 
> And, btw, Cocoon 2 is really great (or at least it will be when 
> I'll manage 
> to use sessions :)) !
> 
> David

Mime
View raw message