cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Bianchi <...@research.telcordia.com>
Subject RE: session obj
Date Tue, 20 Jun 2000 11:41:20 GMT
On Tue, 20 Jun 2000, Torsten Curdt wrote:

> > >     <xsp:logic>
> > >        HttpSession session;
> > >        session = request.getSession(true);
> > 
> > You should use another name for a new session, because "session" is the
> > name of the current session.
> 
> So I could just use..
> 
>    id = session.getId();
>    last = new Date(session.getLastAccessedTime());
> 
> ...and so on?!

first of all you have to create a session somewhere (in some xsp page):

<xsp:logic>
 session = request.getSession(true);
 ...

then cocoon gets automatically the session (somewhere
request.getSession(false)).



-------------------------------------------------------------------------------
michele_bianchi                                  exsense | integrated_solutions
phone://+39_348_7651874                                       via_scrimiari_45b
http://mic.aesthetica.it                                     37132_verona_italy


Mime
View raw message