Losing Session Information

Posted on 2006-05-25
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
    LVL 5

    Expert Comment

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

    Expert Comment

    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.
    LVL 5

    Expert Comment

    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.
    LVL 1

    Accepted Solution

    PAQed with no points refunded (of 500)

    Community Support Moderator

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Suggested Solutions

    Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
    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…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now