Session Attribute not working .JSP / Tomcat

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mhb22079
    New Member
    • Jul 2008
    • 1

    Session Attribute not working .JSP / Tomcat

    Hello:

    I am new to JAVA and the creation of JSP pages but I believe I have correctly coded what would be needed for a user to log into a page and go to another page to and still know that they logged in using the session parameter.

    On the main page after login I can return the fact that a session is active using the session.getAttr ibute method but using it on a subsequent page results in NULL being returned. Not trusting my coding I downloaded a sample program that is supposed to do the same at: http://www.roseindia.net/jsp/SessionAttribute.shtml

    but it too returns NULL. Is there something not set properly in Tomcat? In Tomcat manager I see the session only it is not being passed to the subsequent called page.

    Any help is appreciated. I did not make any changes to the program I downloaded from the roseindia site.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Let's see the code you used.

    Comment

    • rajujrk
      New Member
      • Aug 2008
      • 107

      #3
      Look out your browser and check whether the cookies are disabled or enabled.

      Sometimes session variables doesn't work, if the cookies are disabled...

      try after changed it..

      Comment

      Working...