R: add a session's attribute after authentication

2006-05-02 Thread Amleto Di Salle
mp; > null==request.getSession().getAttribute("cowbell")) { > myCodeWhichInitializesSessionOnLogin(); >} >chain.doFilter(request, response); > } > > -Tim > > Amleto Di Salle wrote: > > > Hi all, > > I have used the container (Tomcat) managed securit

add a session's attribute after authentication

2006-05-02 Thread Amleto Di Salle
Hi all, I have used the container (Tomcat) managed security, but after the authentication I would like to set an object inside the session. How can I do? I have noticed that Tomcat creates a session if the user accesses to a protected resource, so i cannot use the HttpSessionListener. Thanks in a