You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Lacson <pl...@gmail.com> on 2005/05/12 23:54:00 UTC
Sessions and keep-alives
hi All!
I'm involved in a project that integrates two disparate web
applications: webapp A is using WebSphere and webapp B is using
Tomcat.
The integration involves Single Sign On, with webapp A being the
primary webapp from which webapp B is launched. webapp B is launched
as a popup-window.
My question is: how can i ensure that while the user is working on the
webapp B popup, the parent window webapp A, does not time-out?
Thanks in advance!
--
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Sessions and keep-alives
Posted by Tim Diggins <su...@red56.co.uk>.
Well, unless I misunderstood, the requirement is to keep the session for
webappA alive as long as the session for webappB is alive, so if webappB
is to be alive, then it must have new pages from the server (no need for
a refresh there. Then the webappB's pages (views) could include a
reference to the (uncachable) gif which will be on the webappA's site
(and which will require, and thus keep alive, a session). On the other
hand, this might engender some kind of coupling between the two webapps,
so maybe not the best solution (the whole thing doesn't feel like "the
best solution"), but one __could__ get around this by passing in some
optional parameter giving the url of the gif that needs to be included
on every page, thus decoupling the two apps.
Anyway, I may well have totally misunderstood the situation, so
probably, nuff said on the area.
Frank W. Zammetti wrote:
> I'm curious how this would work? If I open a page with an invisible GIF,
> there's no way (without scripting and such) to have the GIF "refresh",
> right? Or is there something I'm missing?
>
> You can set a meta refresh on the page, but not the GIF itself, as far as
> I know anyway.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Sessions and keep-alives
Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
I'm curious how this would work? If I open a page with an invisible GIF,
there's no way (without scripting and such) to have the GIF "refresh",
right? Or is there something I'm missing?
You can set a meta refresh on the page, but not the GIF itself, as far as
I know anyway.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Fri, May 13, 2005 12:04 pm, Tim Diggins said:
> I'd just include this invisible gif on every page (request) of webapp B.
> (bone-headed solution, but why get more tricksy until you need it).
>
> -- Tim
>
> Patrick Lacson wrote:
>> Interesting solution Tim.. so webapp B would invoke this invisible gif
>> from webapp A on an interval basis?
>>
>> -P
>>
>> On 5/13/05, Tim Diggins <su...@red56.co.uk> wrote:
>>
>>>Hi Patrick -
>>>
>>>If not an iframe, why not a gif... There's nothing (in principle I
>>>think*) stopping you having a jsp page that returns a (tiny, invisible)
>>>gif (with the right mimetype) and with appropriate expires/cache-control
>>>headers to make sure that it gets "got" each time. That's the way some
>>>web-counters work, for example, and I can't see it would create a
>>>problem... (I don't however know whether you can maintain two session
>>>cookies at the same time... Would work however with a param-based
>>> session).
>>>
>>>--Tim
>>>
>>>* I have done this in similar kinds of situations with python & php, but
>>>not tomcat.
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Sessions and keep-alives
Posted by Tim Diggins <su...@red56.co.uk>.
I'd just include this invisible gif on every page (request) of webapp B.
(bone-headed solution, but why get more tricksy until you need it).
-- Tim
Patrick Lacson wrote:
> Interesting solution Tim.. so webapp B would invoke this invisible gif
> from webapp A on an interval basis?
>
> -P
>
> On 5/13/05, Tim Diggins <su...@red56.co.uk> wrote:
>
>>Hi Patrick -
>>
>>If not an iframe, why not a gif... There's nothing (in principle I
>>think*) stopping you having a jsp page that returns a (tiny, invisible)
>>gif (with the right mimetype) and with appropriate expires/cache-control
>>headers to make sure that it gets "got" each time. That's the way some
>>web-counters work, for example, and I can't see it would create a
>>problem... (I don't however know whether you can maintain two session
>>cookies at the same time... Would work however with a param-based session).
>>
>>--Tim
>>
>>* I have done this in similar kinds of situations with python & php, but
>>not tomcat.
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Sessions and keep-alives
Posted by Patrick Lacson <pl...@gmail.com>.
Interesting solution Tim.. so webapp B would invoke this invisible gif
from webapp A on an interval basis?
-P
On 5/13/05, Tim Diggins <su...@red56.co.uk> wrote:
> Hi Patrick -
>
> If not an iframe, why not a gif... There's nothing (in principle I
> think*) stopping you having a jsp page that returns a (tiny, invisible)
> gif (with the right mimetype) and with appropriate expires/cache-control
> headers to make sure that it gets "got" each time. That's the way some
> web-counters work, for example, and I can't see it would create a
> problem... (I don't however know whether you can maintain two session
> cookies at the same time... Would work however with a param-based session).
>
> --Tim
>
> * I have done this in similar kinds of situations with python & php, but
> not tomcat.
>
> Patrick Lacson wrote:
> > I've considered iframes, but unfortunately not an option for us.
> >
> >>From what I understand AJAX can make async calls to the HTTP server
> > from the webapplication only, not on behalf of another. So if the
> > popup application is webapp B, and the parent webapp A, how can I call
> > the webapp A server from webapp B for the keep-alive?
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Sessions and keep-alives
Posted by Tim Diggins <su...@red56.co.uk>.
Hi Patrick -
If not an iframe, why not a gif... There's nothing (in principle I
think*) stopping you having a jsp page that returns a (tiny, invisible)
gif (with the right mimetype) and with appropriate expires/cache-control
headers to make sure that it gets "got" each time. That's the way some
web-counters work, for example, and I can't see it would create a
problem... (I don't however know whether you can maintain two session
cookies at the same time... Would work however with a param-based session).
--Tim
* I have done this in similar kinds of situations with python & php, but
not tomcat.
Patrick Lacson wrote:
> I've considered iframes, but unfortunately not an option for us.
>
>>>From what I understand AJAX can make async calls to the HTTP server
> from the webapplication only, not on behalf of another. So if the
> popup application is webapp B, and the parent webapp A, how can I call
> the webapp A server from webapp B for the keep-alive?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Sessions and keep-alives
Posted by Patrick Lacson <pl...@gmail.com>.
I've considered iframes, but unfortunately not an option for us.
>From what I understand AJAX can make async calls to the HTTP server
from the webapplication only, not on behalf of another. So if the
popup application is webapp B, and the parent webapp A, how can I call
the webapp A server from webapp B for the keep-alive?
On 5/12/05, Tim Funk <fu...@joedog.org> wrote:
> The simplest kludge is an iframe that is "hidden" and uses a META refresh.
>
> Or look at using ajax.
>
> -Tim
>
> Patrick Lacson wrote:
>
> > hi All!
> >
> > I'm involved in a project that integrates two disparate web
> > applications: webapp A is using WebSphere and webapp B is using
> > Tomcat.
> >
> > The integration involves Single Sign On, with webapp A being the
> > primary webapp from which webapp B is launched. webapp B is launched
> > as a popup-window.
> >
> > My question is: how can i ensure that while the user is working on the
> > webapp B popup, the parent window webapp A, does not time-out?
> >
> > Thanks in advance!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Sessions and keep-alives
Posted by Tim Funk <fu...@joedog.org>.
The simplest kludge is an iframe that is "hidden" and uses a META refresh.
Or look at using ajax.
-Tim
Patrick Lacson wrote:
> hi All!
>
> I'm involved in a project that integrates two disparate web
> applications: webapp A is using WebSphere and webapp B is using
> Tomcat.
>
> The integration involves Single Sign On, with webapp A being the
> primary webapp from which webapp B is launched. webapp B is launched
> as a popup-window.
>
> My question is: how can i ensure that while the user is working on the
> webapp B popup, the parent window webapp A, does not time-out?
>
> Thanks in advance!
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org