Do you know how the session is being tracked in the browser? Cookie, url? Are you saying you use the same browser in each case? Can you log the http traffic?
Martin -----Original Message----- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 04:26 To: Tomcat Users List Subject: RE: SESSION PROBLEM in UNIX hi, Thank you for your reply and suggestion . I have only one user and one browser window and I get this problem . I also like to mention that in the starting of the JSP if I added a line of code like session = request.getSession(false), then I don't get this problem at all .But I am not able to understand why access to the session variable gives exception suddenly after some refresh if I don't do this.Also I checked the codes , no session invalidation is done nor a new session is created anywhere. Thanks and Regards Mukund -----Original Message----- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 2:24 AM To: 'Tomcat Users List' Subject: RE: SESSION PROBLEM in UNIX Hi, How about implementing HttpSessionListener so that you know when your session is getting created and destroyed? Also do you have multiple users running the same jsp? If you do, you may want to synchronize that block of code. Hope this helps:). -Yan -----Original Message----- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: April 14, 2004 07:41 To: Tomcat Users List Subject: SESSION PROBLEM in UNIX Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the implicit session becomes null and throws a null pointer exception. I get a null pointer exception and session is printed as null but even the if block (session == null) is not executed . I printed the value of request.getSession(false);.This gives me session object ,where as the implicit session does not have this after many refresh interval During the first few refreshes both have the same value. Also note that this runs fine in Windows ,I get this problem only in UNIX . I use tomcat 3.2 in unix and view using IE in windows I tried in tomcat 4 also I still get the same exception FIND below the code in JSP try{ if (session == null){ System.out.println("session is null:::"); } System.out.println("session3:::"+session.toString()); if (session.isNew()) { System.out.println("HI"); session.setAttribute(BPRealtimeConstants.C_JPM_SESSION_FAIL_ID,"failed") ; response.setHeader("Refresh","1; URL=/MCOne/BP/index.html"); return; } } catch (Exception e) { System.out.println("I am in exception "); System.out.println("I am after hello ::::"+request.getSession(false)); e.printStackTrace(); } I am unble to find any resource on the net which might help me identify the problem ,I am posting this for the second time . Can there be any difference in session handling when tomcat is run in unix and Windows. Any inputs will really help me solve this production problem Thanks and Regards Mukund --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]