|
Thanks Art: This session problem happened to all my servlets. I checked all session management settings at both Application and Server levels and they appeared to be OK. I then chenged the session timeout from 30 minutes to 60 minutes and clicked Apply and Save. I restarted my app and now they all work! I believe 'Click Apply and Save' did the trick. Bruce ----- Original Message ----- From: "Art Smet" <smet@xxxxxxxxxx> To: <java400-l@xxxxxxxxxxxx> Sent: Wednesday, July 23, 2003 8:19 AM Subject: Re: Session lost in WAS Express (iSeries) > > > > > 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. > > > > > _______________________________________________ > 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.