What means session persistence when the optionnal cookie is disabled in JRun
???

Here is a sample of code which start the service method of my application's
dispatching servlet

HttpSession session = _req.getSession (false);
if (session == null) {
    System.out.println ("invalid session");
    session = _req.getSession (true);
    aoB = new aoBean ();
    aoB.setProp ("test");
    session.putValue ("aoB", aoB);
}

Then the forwarding jsp page can access the bean, and the property prop is
well set.

On the next page, the "invalid session" message is written, and a new bean
is created, successfully accessed by the nextcoming jsp. If I enable the
session cookie, everything work the way I want - which is keeping the
session.

Am I doing anything wrong, or is it just the persistence engine that cannot
work without the cookie ? In this case, what is the enable cookie checkbox
made for ? How do other java servers implement session and is it possible to
make it work without cookie ?

If anyone has developped a session bean that works this way, I'd be glad to
have some clues also.

Thanks
Sylvain


Computers are like air conditioners - they stop working
properly when you open Windows

UNIX _IS_ user friendly.  It's just selective about who its friends are.

______________________________________________
Sylvain Roche
Responsable développement
Add-Online
www.add-online.fr

70bis rue Bossuet
69006 LYON
France

tel : +33 472838583
fax: +33 472838584

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to