Re: tomcat session problem
On Thu, 25 Oct 2001, Rinku Randhawa wrote: Thanks Ralph for the information, my question is when there are 2 sessions running on the web in the same PC (by opening 2 browsers) then it doesn't track the sessions properly and changes the value of the session when I go to different pages even if I limit one session to one browser. When you say one browser what do you mean? A session is effectively tied to a cookie (unless you are using url re-writing, which might make more sense for what you suggest), and so if you have two IE windows open, its one session. However, if you have one IE and one Netscape window open, its two sessions. hth dim
Re: tomcat session problem
On Fri, 26 Oct 2001, Dmitri Colebatch wrote: On Thu, 25 Oct 2001, Rinku Randhawa wrote: Thanks Ralph for the information, my question is when there are 2 sessions running on the web in the same PC (by opening 2 browsers) then it doesn't track the sessions properly and changes the value of the session when I go to different pages even if I limit one session to one browser. When you say one browser what do you mean? A session is effectively tied to a cookie (unless you are using url re-writing, which might make more sense for what you suggest), and so if you have two IE windows open, its one session. However, if you have one IE and one Netscape window open, its two sessions. I take this back... IE it seems doesn't share cookies between multiple instances if they are opened as a new application - as opposed to Ctrl-N. Geoff Howard pointed this out just now... sorry for the confusion. cheesr dim
Re: tomcat session problem
Hi, Limiting the sessions to one browser means I start a session in it and click on different jsp links to go to different pages, but I Do NOT open another window for any page. So, like this I have two sessions running at one time by logging into my program in two separate IE 5.0 windows. Which means, I open a browser, log in ones, and the session starts and then I open another browser and login and start another session. What I find is, when the 2 sessions are running in those 2 windows and when I click to different pages to open them in their respective windows then somehow the session value changes and start giving me interchanged pages or wrong session values. This is not happening in my local environment which means in the browser of the PC that has tomcat installed in it, but happens when I login into this website through internet connection from somewhere else and start sessions. I would really appreciate the suggestions Thanks Rinku - Original Message - From: Dmitri Colebatch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 26, 2001 1:50 AM Subject: Re: tomcat session problem On Fri, 26 Oct 2001, Dmitri Colebatch wrote: On Thu, 25 Oct 2001, Rinku Randhawa wrote: Thanks Ralph for the information, my question is when there are 2 sessions running on the web in the same PC (by opening 2 browsers) then it doesn't track the sessions properly and changes the value of the session when I go to different pages even if I limit one session to one browser. When you say one browser what do you mean? A session is effectively tied to a cookie (unless you are using url re-writing, which might make more sense for what you suggest), and so if you have two IE windows open, its one session. However, if you have one IE and one Netscape window open, its two sessions. I take this back... IE it seems doesn't share cookies between multiple instances if they are opened as a new application - as opposed to Ctrl-N. Geoff Howard pointed this out just now... sorry for the confusion. cheesr dim
Re: tomcat session problem
On Fri, 26 Oct 2001, Dmitri Colebatch wrote: Date: Fri, 26 Oct 2001 15:50:41 +1000 From: Dmitri Colebatch [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: tomcat session problem On Fri, 26 Oct 2001, Dmitri Colebatch wrote: On Thu, 25 Oct 2001, Rinku Randhawa wrote: Thanks Ralph for the information, my question is when there are 2 sessions running on the web in the same PC (by opening 2 browsers) then it doesn't track the sessions properly and changes the value of the session when I go to different pages even if I limit one session to one browser. When you say one browser what do you mean? A session is effectively tied to a cookie (unless you are using url re-writing, which might make more sense for what you suggest), and so if you have two IE windows open, its one session. However, if you have one IE and one Netscape window open, its two sessions. I take this back... IE it seems doesn't share cookies between multiple instances if they are opened as a new application - as opposed to Ctrl-N. Geoff Howard pointed this out just now... sorry for the confusion. It's actually a configuration option on IE -- browse in a new process determines whether windows share cookies or not. cheesr dim Craig
AW: tomcat session problem
It's not a tomcat issue, it more an issue of your application. If you open a second windows from a running session, the windows will share the session from tomcat. From the view of tomcat the windows are indistinguishable from each other. Tomcat even can't recognize that there are two windows (That's true for any server that talks HTTP with its clients). So if you want to allow more than one window, your application has to take care of that. -Ursprüngliche Nachricht- Von: Rinku Randhawa [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Oktober 2001 20:46 An: [EMAIL PROTECTED] Betreff: tomcat session problem Hi there, I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding that session tracking, when more than one browser window is opened at one time, doesn't come out to be correct. I am using its inbuilt session object and the cookies are enabled in my browser. When more than one sessions are running then the page presented is unpredictable.Sometimes correct page displays and sometimes totally diferent page gets displayed. It works great except if I have 2 browsers sessions up - then it gets confused and losses track of which is the current session. Are there any issues with the Tomcat server regarding session tracking? Thanks in advance, -Rinku
RE: tomcat session problem
Hi Rinku, Your application should work fine in both the browsers opened simultaneously...only if the second browser window is not opened from the first browser window using Ctrl+N If you are opening the 2nd browser window from 1st one only... as said above, then the session object will be single and both of the browsers will be interacting(i.e. reading, writing or get/set) with the single session object...and in that case, it will not behave properly.. ya, but if you have opened two browser windows separately, then there will be two different session objects for each of them, you must be able to work on both of them simultaneously.. I hope, this will help you. regards, Chintan. -Original Message- From: Rinku Randhawa [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 12:16 AM To: [EMAIL PROTECTED] Subject: tomcat session problem Hi there, I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding that session tracking, when more than one browser window is opened at one time, doesn't come out to be correct. I am using its inbuilt session object and the cookies are enabled in my browser. When more than one sessions are running then the page presented is unpredictable.Sometimes correct page displays and sometimes totally diferent page gets displayed. It works great except if I have 2 browsers sessions up - then it gets confused and losses track of which is the current session. Are there any issues with the Tomcat server regarding session tracking? Thanks in advance, -Rinku
RE: tomcat session problem
just out of curiosity, what browser are you using, and how are you beginning the second browser session? Geoff -Original Message- From: Rinku Randhawa [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 2:46 PM To: [EMAIL PROTECTED] Subject: tomcat session problem Hi there, I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding that session tracking, when more than one browser window is opened at one time, doesn't come out to be correct. I am using its inbuilt session object and the cookies are enabled in my browser. When more than one sessions are running then the page presented is unpredictable.Sometimes correct page displays and sometimes totally diferent page gets displayed. It works great except if I have 2 browsers sessions up - then it gets confused and losses track of which is the current session. Are there any issues with the Tomcat server regarding session tracking? Thanks in advance, -Rinku
Re: tomcat session problem
It's more likely to be a problem with your application, or a misunderstanding of how browsers handle cookies. In general, cookies are *not* specific to a particular browser window. Therefore, all windows that the client has open are part of the same session. This is the way Netscape (at least 4.7.x) always runs -- but in IIS it's configurable. But the bottom line is that you cannot expect each window to be running in its own session. Craig On Wed, 24 Oct 2001, Rinku Randhawa wrote: Date: Wed, 24 Oct 2001 14:46:25 -0400 From: Rinku Randhawa [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: tomcat session problem Hi there, I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding that session tracking, when more than one browser window is opened at one time, doesn't come out to be correct. I am using its inbuilt session object and the cookies are enabled in my browser. When more than one sessions are running then the page presented is unpredictable.Sometimes correct page displays and sometimes totally diferent page gets displayed. It works great except if I have 2 browsers sessions up - then it gets confused and losses track of which is the current session. Are there any issues with the Tomcat server regarding session tracking? Thanks in advance, -Rinku
Re: tomcat session problem
Thanks Ralph for the information, my question is when there are 2 sessions running on the web in the same PC (by opening 2 browsers) then it doesn't track the sessions properly and changes the value of the session when I go to different pages even if I limit one session to one browser. Thanks, -Rinku - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 25, 2001 2:32 AM Subject: AW: tomcat session problem It's not a tomcat issue, it more an issue of your application. If you open a second windows from a running session, the windows will share the session from tomcat. From the view of tomcat the windows are indistinguishable from each other. Tomcat even can't recognize that there are two windows (That's true for any server that talks HTTP with its clients). So if you want to allow more than one window, your application has to take care of that. -Ursprüngliche Nachricht- Von: Rinku Randhawa [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 24. Oktober 2001 20:46 An: [EMAIL PROTECTED] Betreff: tomcat session problem Hi there, I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding that session tracking, when more than one browser window is opened at one time, doesn't come out to be correct. I am using its inbuilt session object and the cookies are enabled in my browser. When more than one sessions are running then the page presented is unpredictable.Sometimes correct page displays and sometimes totally diferent page gets displayed. It works great except if I have 2 browsers sessions up - then it gets confused and losses track of which is the current session. Are there any issues with the Tomcat server regarding session tracking? Thanks in advance, -Rinku
RE: tomcat session problem
I am pretty sure from having been through this before that Netscape and IE differ on this issue. The description below holds for IE, but not Netscape which will share a session no matter how you open the 2nd window. Geoff -Original Message- From: Shah, Chintan V (Chintan) [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 3:39 AM To: '[EMAIL PROTECTED]' Subject: RE: tomcat session problem Hi Rinku, Your application should work fine in both the browsers opened simultaneously...only if the second browser window is not opened from the first browser window using Ctrl+N If you are opening the 2nd browser window from 1st one only... as said above, then the session object will be single and both of the browsers will be interacting(i.e. reading, writing or get/set) with the single session object...and in that case, it will not behave properly.. ya, but if you have opened two browser windows separately, then there will be two different session objects for each of them, you must be able to work on both of them simultaneously.. I hope, this will help you. regards, Chintan. -Original Message- From: Rinku Randhawa [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 12:16 AM To: [EMAIL PROTECTED] Subject: tomcat session problem Hi there, I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding that session tracking, when more than one browser window is opened at one time, doesn't come out to be correct. I am using its inbuilt session object and the cookies are enabled in my browser. When more than one sessions are running then the page presented is unpredictable.Sometimes correct page displays and sometimes totally diferent page gets displayed. It works great except if I have 2 browsers sessions up - then it gets confused and losses track of which is the current session. Are there any issues with the Tomcat server regarding session tracking? Thanks in advance, -Rinku
Re: tomcat session problem
Thanks Chintan, actually I heard from someone that tomcat server does not support sessions properly at times, so, I just wanted to clarify it. - Original Message - From: Shah, Chintan V (Chintan) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 25, 2001 3:39 AM Subject: RE: tomcat session problem Hi Rinku, Your application should work fine in both the browsers opened simultaneously...only if the second browser window is not opened from the first browser window using Ctrl+N If you are opening the 2nd browser window from 1st one only... as said above, then the session object will be single and both of the browsers will be interacting(i.e. reading, writing or get/set) with the single session object...and in that case, it will not behave properly.. ya, but if you have opened two browser windows separately, then there will be two different session objects for each of them, you must be able to work on both of them simultaneously.. I hope, this will help you. regards, Chintan. -Original Message- From: Rinku Randhawa [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 12:16 AM To: [EMAIL PROTECTED] Subject: tomcat session problem Hi there, I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding that session tracking, when more than one browser window is opened at one time, doesn't come out to be correct. I am using its inbuilt session object and the cookies are enabled in my browser. When more than one sessions are running then the page presented is unpredictable.Sometimes correct page displays and sometimes totally diferent page gets displayed. It works great except if I have 2 browsers sessions up - then it gets confused and losses track of which is the current session. Are there any issues with the Tomcat server regarding session tracking? Thanks in advance, -Rinku
tomcat session problem
Hi there, I am using jakarta-tomcat - 3.2.3 server to run my project. I am finding that session tracking, when more than one browser window is opened at one time, doesn't come out to be correct. I am using its inbuilt session object and the cookies are enabled in my browser. When more than one sessions are running then the page presented is unpredictable.Sometimes correct page displays and sometimes totally diferent page gets displayed. It works great except if I have 2 browsers sessions up - then it gets confused and losses track of which is the current session. Are there any issues with the Tomcat server regarding session tracking? Thanks in advance, -Rinku
IIS tomcat session problem
Hi, I am trying to use tomcat3.2.1 together with IIS5. Everything works fine except the session. In my project - my first one in tomcat, logon.jsp will keep the user logon infomation in Session and redirect user to menu.jsp. Menu.jsp will then check the logon info before doing any actual work. If it can not find the necessary Session info, it will redirect user back to logon.jsp. All these work fine under Tomcat. But when I turn to IIS Combination, I found every time when logon, I could not be redirected to menu.jsp. Seems like they use different Seesion?? Can anyone give me a hint to resolve this problem? thanks in advance.
Tomcat Session Problem!
Hi All, Thanks a lot in advance. I have a grave problem with tomcat. I am not able to kill session created with HttpSession Mysession = request.getSession( true ); At the end even if i execute Mysession.invalidate(); still in my next session i get the values of when i call MySession.getAttribute("mystring"); How do i kill the session? FYI I am using JDK1.3 and Tomcat 3.1/3.2 Best Regards Moin. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]