Hi, Actually I encountered same problem and solved it as this way,but I have
another question.
In my logon action, I set up the session max inactive Interval like this
request.getSession().setMaxInactiveInterval(900),
I think the unit should be second(not sure). The problem is that how can I
disable the flash for my logon page ?
when I flash logon.do, the browser shows that this page can not be flashed,
but I did, I still get the old session alive,the logon session is still
availabe. I means once I logon, even I restart my server, I can still flash
my jsp page to got my logon page available,the logon is still available,
what I hope to display the session is expired and need to logon again, I am
still studying how to do that? nay body has any idea?
thanks first!
Barry

-----Original Message-----
From: Thorsten Frank [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 22, 2001 10:10 AM
To: Struts Users Mailing List
Subject: Re: Want to check user is logged in every page server


create a bean that represents a user during the login-action processing. add
it to the session in your action.
on every following page, do a check for a bean representing the user. if not
present, do a forward to the login-page.

<logic:notPresent name="user" scope="session">
<html:link forward="/login.jsp".....

greetings,

thorsten


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 10:41 AM
Subject: Want to check user is logged in every page server


: Hi
:
: Everytime a page is served from my Struts application, I want to check
: to make sure the user is logged in.  If they are not then I want to send
: them to the login screen.  What is the best way to go about this using
: Struts?
:
: Cheers
:
: Tony
:
:
: --
: To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
: For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
:


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

Reply via email to