Losing Session Information

Posted on 2006-05-25
Medium Priority
Last Modified: 2013-12-10
After installing Fix Pack 16 (WAS version, some parts of my web app are losing the session information.  The app works correctly in WSAD (i can't duplicate this problem in development), and worked on the web server prior to the fix pack.

i.e.: this no longer evaluates correctly:

if (!(session.getAttribute("LoggedIn").equals("Y"))) { // If not logged in...
<jsp:forward page="/plzlogin.jsp">

I can navigate around certain portions of the app and wont lose the session data, and one particular page I have to load twice before I lose the session data.  I haven't been able to identify the common elements between pages that cause me to lose the data.

Any ideas?

Question by:jjmartin
  • 3

Expert Comment

ID: 16866747
Can you post the sesion related code in the pages that are loosing the data ? Are you creating a new session by any chance ?

Expert Comment

ID: 16888833
WebSPhere treates the sessions from secured pages differently from the unsecured pages. The Sessions created and updated from the secure pages are not visible from unsecured pages. Please verify whether you are navigating between secure and un secure pages.

We do secure all the pages in the navigation series for a given busines function.

Expert Comment

ID: 17649196
One of the major reasons forloosing the session info is moving between secure and unsecure pages in the flow. The Websphere will not allow access of sessions created on secure pages from unsecure pages.

Another reason is if the user is creating a new session in any of the pages unintentionally. Since the original poster never got back to us , there is no way to know what was the reason in this case, but  my answer shall help others in similar situations.

Accepted Solution

DarthMod earned 0 total points
ID: 17668284
PAQed with no points refunded (of 500)

Community Support Moderator

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question