Unexpected session timeout in recent build

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Unexpected session timeout in recent build

npujol
Hi,

It is my understanding that Out of the box,
orbeon will keep the session alive on the
backend app server as long as the page is displayed
on the screen.

I noticed that i have been getting some
session timeouts lately with a 2/5/10 build.

2 questions:
#1. Is my understanding correct given I am in a separate
deployment setup on jboss?

#2. Is it possible to handle the session timeout elegantly by
either customizing the message and/or subscribe/listen
to some event via javascript?

thanks a bunch!

Nicolas
Reply | Threaded
Open this post in threaded view
|

Re: Unexpected session timeout in recent build

Alessandro  Vernet
Administrator
Nicolas,

#1 Yes, with oxf.xforms.session-heartbeat set to true, which is the default.
#2 Yes, in JavaScript you can listen to
ORBEON.xforms.Events.errorEvent to be notified when an error happens
(either on the server-side, or in JavaScript). See:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-javascript-integration#TOC-Custom-Events

Alex

On Thu, Feb 25, 2010 at 10:03 PM, npujol <[hidden email]> wrote:

>
> Hi,
>
> It is my understanding that Out of the box,
> orbeon will keep the session alive on the
> backend app server as long as the page is displayed
> on the screen.
>
> I noticed that i have been getting some
> session timeouts lately with a 2/5/10 build.
>
> 2 questions:
> #1. Is my understanding correct given I am in a separate
> deployment setup on jboss?
>
> #2. Is it possible to handle the session timeout elegantly by
> either customizing the message and/or subscribe/listen
> to some event via javascript?
>
> thanks a bunch!
>
> Nicolas
> --
> View this message in context: http://n4.nabble.com/Unexpected-session-timeout-in-recent-build-tp1570189p1570189.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Unexpected session timeout in recent build

npujol73
Thanks for your answer Alex, however why is it that I am getting a
session timeout if the sesison-heartbeat is to true?

thanks



On Fri, Feb 26, 2010 at 12:04 PM, Alessandro Vernet <[hidden email]> wrote:

> Nicolas,
>
> #1 Yes, with oxf.xforms.session-heartbeat set to true, which is the default.
> #2 Yes, in JavaScript you can listen to
> ORBEON.xforms.Events.errorEvent to be notified when an error happens
> (either on the server-side, or in JavaScript). See:
>
> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-javascript-integration#TOC-Custom-Events
>
> Alex
>
> On Thu, Feb 25, 2010 at 10:03 PM, npujol <[hidden email]> wrote:
>>
>> Hi,
>>
>> It is my understanding that Out of the box,
>> orbeon will keep the session alive on the
>> backend app server as long as the page is displayed
>> on the screen.
>>
>> I noticed that i have been getting some
>> session timeouts lately with a 2/5/10 build.
>>
>> 2 questions:
>> #1. Is my understanding correct given I am in a separate
>> deployment setup on jboss?
>>
>> #2. Is it possible to handle the session timeout elegantly by
>> either customizing the message and/or subscribe/listen
>> to some event via javascript?
>>
>> thanks a bunch!
>>
>> Nicolas
>> --
>> View this message in context: http://n4.nabble.com/Unexpected-session-timeout-in-recent-build-tp1570189p1570189.html
>> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
>
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise -
> http://www.orbeon.com/
> My Twitter: http://twitter.com/avernet
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Unexpected session timeout in recent build

Alessandro  Vernet
Administrator
You should not be getting a session timeout if the browser window is
left open. Can you:

* Reduce the duration of the session, which is set to 12 hours by
default in web.xml, to say 2 minutes.
* Load a page, and see if the client sends an Ajax request to the
server when it gets close to 2 minutes?

Alex

On Fri, Feb 26, 2010 at 10:58 AM, Nicolas Pujol
<[hidden email]> wrote:

> Thanks for your answer Alex, however why is it that I am getting a
> session timeout if the sesison-heartbeat is to true?
>
> thanks
>
>
>
> On Fri, Feb 26, 2010 at 12:04 PM, Alessandro Vernet <[hidden email]> wrote:
>> Nicolas,
>>
>> #1 Yes, with oxf.xforms.session-heartbeat set to true, which is the default.
>> #2 Yes, in JavaScript you can listen to
>> ORBEON.xforms.Events.errorEvent to be notified when an error happens
>> (either on the server-side, or in JavaScript). See:
>>
>> http://wiki.orbeon.com/forms/doc/developer-guide/xforms-javascript-integration#TOC-Custom-Events
>>
>> Alex
>>
>> On Thu, Feb 25, 2010 at 10:03 PM, npujol <[hidden email]> wrote:
>>>
>>> Hi,
>>>
>>> It is my understanding that Out of the box,
>>> orbeon will keep the session alive on the
>>> backend app server as long as the page is displayed
>>> on the screen.
>>>
>>> I noticed that i have been getting some
>>> session timeouts lately with a 2/5/10 build.
>>>
>>> 2 questions:
>>> #1. Is my understanding correct given I am in a separate
>>> deployment setup on jboss?
>>>
>>> #2. Is it possible to handle the session timeout elegantly by
>>> either customizing the message and/or subscribe/listen
>>> to some event via javascript?
>>>
>>> thanks a bunch!
>>>
>>> Nicolas
>>> --
>>> View this message in context: http://n4.nabble.com/Unexpected-session-timeout-in-recent-build-tp1570189p1570189.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email] mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>>
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet