You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Izak Wessels <po...@gmail.com> on 2006/04/02 18:34:22 UTC

Session Application State Object Lifespan

Hello all,

I was wondering if somebody could inform me as to what the lifespan of
an Session - Application State Object is?

Regards,

-- Izak

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Session Application State Object Lifespan

Posted by D&J Gredler <dj...@gmail.com>.
You can increase the session lifespan if you want, but it's always better to
just code to the worst case scenario... so whatever happens when the session
expires should be well-defined. Is it possible that the session-scoped ASO
is being created dynamically once the session expires, but it's not getting
initialized like it would when the user logs in? If so, try to use the
InjectStateFlag to check if the ASO exists without dynamically creating it.

On 4/4/06, Izak Wessels <po...@gmail.com> wrote:
>
> Anybody able to shed some light on this issue?
>
> On 4/3/06, Izak Wessels <po...@gmail.com> wrote:
> > Ok, the reason I am asking is because when the user logs on to my
> > application, it creates a session for that user. the user has an
> > associated id that is being accessed on most of the pages throughout
> > the application. however, after a period of time, when i try to load
> > one of the pages, where the user id is being used, again it comes back
> > and says that user id is equal to null.
> >
> > would this be a case where i simply need to increase the session
> > lifespan in web.xml?
> >
> > On 4/2/06, D&J Gredler <dj...@gmail.com> wrote:
> > > AFAIK, its lifespan will be the same as the session's... so until you
> > > invalidate the session or the session expires (as defined in web.xml).
> > >
> > > On 4/2/06, Izak Wessels <po...@gmail.com> wrote:
> > > >
> > > > Hello all,
> > > >
> > > > I was wondering if somebody could inform me as to what the lifespan
> of
> > > > an Session - Application State Object is?
> > > >
> > > > Regards,
> > > >
> > > > -- Izak
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

Re: Session Application State Object Lifespan

Posted by Izak Wessels <po...@gmail.com>.
Anybody able to shed some light on this issue?

On 4/3/06, Izak Wessels <po...@gmail.com> wrote:
> Ok, the reason I am asking is because when the user logs on to my
> application, it creates a session for that user. the user has an
> associated id that is being accessed on most of the pages throughout
> the application. however, after a period of time, when i try to load
> one of the pages, where the user id is being used, again it comes back
> and says that user id is equal to null.
>
> would this be a case where i simply need to increase the session
> lifespan in web.xml?
>
> On 4/2/06, D&J Gredler <dj...@gmail.com> wrote:
> > AFAIK, its lifespan will be the same as the session's... so until you
> > invalidate the session or the session expires (as defined in web.xml).
> >
> > On 4/2/06, Izak Wessels <po...@gmail.com> wrote:
> > >
> > > Hello all,
> > >
> > > I was wondering if somebody could inform me as to what the lifespan of
> > > an Session - Application State Object is?
> > >
> > > Regards,
> > >
> > > -- Izak
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Session Application State Object Lifespan

Posted by Izak Wessels <po...@gmail.com>.
Ok, the reason I am asking is because when the user logs on to my
application, it creates a session for that user. the user has an
associated id that is being accessed on most of the pages throughout
the application. however, after a period of time, when i try to load
one of the pages, where the user id is being used, again it comes back
and says that user id is equal to null.

would this be a case where i simply need to increase the session
lifespan in web.xml?

On 4/2/06, D&J Gredler <dj...@gmail.com> wrote:
> AFAIK, its lifespan will be the same as the session's... so until you
> invalidate the session or the session expires (as defined in web.xml).
>
> On 4/2/06, Izak Wessels <po...@gmail.com> wrote:
> >
> > Hello all,
> >
> > I was wondering if somebody could inform me as to what the lifespan of
> > an Session - Application State Object is?
> >
> > Regards,
> >
> > -- Izak
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Session Application State Object Lifespan

Posted by D&J Gredler <dj...@gmail.com>.
AFAIK, its lifespan will be the same as the session's... so until you
invalidate the session or the session expires (as defined in web.xml).

On 4/2/06, Izak Wessels <po...@gmail.com> wrote:
>
> Hello all,
>
> I was wondering if somebody could inform me as to what the lifespan of
> an Session - Application State Object is?
>
> Regards,
>
> -- Izak
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>