Hi Heimo,

I'm using 3.1.8 Pro and have following configuration working:

    <session-config>
        <session-timeout>30</session-timeout>
    </session-config>

This gives me max interval 1800 with your logging code and that is 30
minutes, as promised. So, at least 3.1.8 works, haven't ever used
3.17a (do you mean 3.1.7 here?).

Cheers,

Kai


2009/3/11 Heimo Laukkanen <hu...@iki.fi>:
> Hi all,
>
> we're running resin 3.17a and seem to have a problem with session timeouts.
>
> If I have in web.xml defined:
>
> <web-app xmlns="http://caucho.com/ns/resin";>
>
>  <session-config session-max="10000" >
>     <!-- 100 minute timeout -->
>     <session-timeout>120</session-timeout>
>
>  </session-config>
>
> It does not seem to have any effect on sessions.
>
> I added session listener and outputted debugging information:
>
>   �...@override
>    public void sessionCreated(final HttpSessionEvent arg0) {
>        log.info("New session started " + arg0.getSession().getId()
>                + " creationtime " + arg0.getSession().getCreationTime()
>                + " now is " + new Date() + " max interval "
>                + arg0.getSession().getMaxInactiveInterval());
>
>    }
>
>   �...@override
>    public void sessionDestroyed(final HttpSessionEvent arg0) {
>        log
>                .info("Session destroyed "
>                        + arg0.getSession().getId()
>                        + " lifespan "
>                        + (System.currentTimeMillis() - arg0.getSession()
>                                .getCreationTime()) + " now is " + new Date()
>                        + " last accessed "
>                        + arg0.getSession().getLastAccessedTime()
>                        + " max interval "
>                        + arg0.getSession().getMaxInactiveInterval());
>    }
>
> It seemed that max inactive interval on sessions was 10 minutes, no
> matter what I set for session timeout in web.xml.
>
> To get longer sessions, I then had to add in sessionlistener:
>        arg0.getSession().setMaxInactiveInterval(7200);
>
> Any thoughts on where the problem might we lurking?
>
>
> -huima
>
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to