2 or more sessions in tomcat

2001-10-26 Thread Rinku Randhawa

Hi,

Can there be 2 or more sessions handled by tomcat server in IE 5.0 browser
of a PC using its inbuilt session tracking property? I can see only one
session being able to be handled till now. Whenever there are 2 sessions
then the session values get interchanged between them.

Thanks
Rinku




Re: tomcat session problem

2001-10-26 Thread Rinku Randhawa

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 issue

2001-10-26 Thread Rinku Randhawa

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: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 25, 2001 9:57 PM
Subject: RE: tomcat session issue


> If you have two browser windows open they both use the same session in the
> servlet engine.
>
> If you use session state to determine navigation etc. then you would get
> unpredictable results.
>
> Conor.
>
> -Original Message-
> From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 25, 2001 5:06 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: tomcat session issue
>
>
> I'm not aware of any session bugs in Tomcat 3.2.3 that would
> explain this.  It is more likely to be some sort of user
> error.  Can't tell if browser caching would be involvled.
> Perhaps you could post some simplified code that demonstrates
> the problem.
>
> Larry
>
> > -Original Message-
> > From: Rinku Randhawa [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 24, 2001 9:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: tomcat session issue
> >
> >
> > 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

2001-10-25 Thread Rinku Randhawa

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




Re: tomcat session problem

2001-10-25 Thread Rinku Randhawa

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
> >
> >
> >
> >




tomcat session problem

2001-10-24 Thread Rinku Randhawa

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 issue

2001-10-24 Thread Rinku Randhawa

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