Try this code in an xsp page: session=request.getSession(); if (session==null) { log.error("Session is null!"); session=request.getSession(true); if (session==null) { log.error("Session is still null!"); log.debug("Trying via objectmodel:"); Request req = (Request) objectModel.get(Constants.REQUEST_OBJECT); log.debug("request = "+(req==null?"NULL":"not null")); org.apache.cocoon.environment.Session ses = req.getSession(); log.debug("Session is "+(ses==null?"NULL": "not null")); } with an appropriate 'log' class.. You should see the following: ERROR : 2001/07/06 21:43 [nsp] Session is null! ERROR : 2001/07/06 21:43 [nsp] Session is still null! DEBUG : 2001/07/06 21:43 [nsp] Trying via objectmodel: DEBUG : 2001/07/06 21:43 [nsp] request = not null DEBUG : 2001/07/06 21:43 [nsp] Session is NULL how do I get a session object that is not null? --------------------------------------------------------------------- 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]>