|
That certainly should not happen by default...here's my suggestions: 1. double check all your Session Manager settings, maybe one of the settings got switched somehow. If you're not sure whether a setting is normal or not, post your settings 2. anything unusual showing up in your app server's stdout/stderr whenever the servlet is called? 3. See if this is a global or local problem - try just calling snoop a few times... does the session mgmt cookie similarly change every time? |---------+------------------------------> | | "Bruce Jin" | | | <jin007m@xxxxxxxxxx| | | m> | | | Sent by: | | | java400-l-bounces@x| | | idrange.com | | | | | | | | | 07/22/2003 06:31 PM| | | Please respond to | | | Java Programming on| | | and around the | | | iSeries / AS400 | | | | |---------+------------------------------> >------------------------------------------------------------------------------------------------------------------| | | | To: "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx> | | cc: | | Subject: Session lost in WAS Express (iSeries) | | | >------------------------------------------------------------------------------------------------------------------| I configured WAS Express iSeries using all default settings. The following code displays a new session Id every time I run this servlet. HttpSession session = request.getSession(true); out.println( "sessions.id" + " " + session.getId()); I added a line to set session expiration interval: HttpSession session = request.getSession(true); session.setMaxInactiveInterval(3600); out.println( "sessions.id" + " " + session.getId()); The result is the same: a new session is displayed every time the servlet is run. The same servlet behaves correctly (session Id does not change) when run in Tomcat (iSeries or PC). Which switch in WAS Express controls this? Thanks! _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.