on 5/29/01 8:43 AM, "Vincent Chappuis" <[EMAIL PROTECTED]> wrote:

> hi,
> 
> I'm using TDK 1.1.a.11
> 
> I put some objects into HttpSession with data.getSession().setAttirbute().
> After a moment (timeout), the session is lost. Now, I would like to redirect
> the user in a defined screen.

data.getUser().isLoggedIn()

> - How to know I lose the session and that isn't a new session ?

Look at the HttpSession object.

> - Is it better to put my objects in data.getUser().setPerm() ?

Generally. Yes.

> is it persistant ?

If the user is logged in and a database is setup, yes.

> - Do I have to use a cookie ? If yes how ?

HttpSession is either a cookie or is in the URL depending on whether or not
cookies are enabled or not.

> - Is is possible in the sessionValidator to check if the session is lost ?

Yes.

> if yes how ?

Look at the examples and the API's.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to