Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
j2eesatish #1
how to specify session timeout
Hi
I am setting objects in the session using following tycnique.
<mx:RemoteObject id="loginidObj" source="servlet" showBusyCursor="true"
fault="mx.controls.Alert.show(event.fault.faultstr ing, 'Error')"/>
greetingObj.session('set', 'loginidObj, infoStr);
and i am specifying the session time out 2 minuts in my web.xml as:
<session-config>
<session-timeout>2</session-timeout>
</session-config>
But, still my sessions are accessable in my applicaion.
How to specify session timeout for my session objects? and how to get how much
my sessiontime out.
Thanks
Satish KC.
j2eesatish Guest
-
Session Timeout
Hi, You can control when the session end by using the Session_onEnd event in global.asax. But when the session expired the user won’t make any... -
PHP session timeout
I've modify the php.ini the session.gc_maxlifetime to reduce the time of timeout of the session variabiles. But it not seems to go. In fact the... -
Session.timeout
I have a session object Session("login") whereas I need to extend the time on this to 1 hour, instead of the default 20 minutes. After initializing... -
IIS Session timeout
Is there a way to notify a client browser that their IIS Session is about to OR has just expired? -
How to set session timeout
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated. -
Moesio #2
Re: how to specify session timeout
You could use a service like follows:
It will return the current value for session timeoutCode:public int getMaxInactiveInterval() { HttpSession session = FlexContext.getHttpRequest().getSession(); return session.getMaxInactiveInterval(); }Moesio Guest



Reply With Quote

