tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Uploading large files and session timeout
Date Fri, 08 Jul 2011 20:09:23 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sai,

On 7/8/2011 10:25 AM, Sai Pullabhotla wrote:
> If the upload takes longer then the session timeout, the session gets
> invalidated right after the upload. Tis means no further requests are
> accepted unless the user logs back in. Is this the expected
> behavior?

Yes, under certain configurations.

> Is there any way to work around this and keep the session active?

Yes.

See the org.apache.catalina.session.StandardSession.ACTIVITY_CHECK
system property in
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Sessions

I think that's exactly what you're looking for. Note that there is some
overhead associated with tracking these active requests and if you want
super-high performance, you might want to go with another solution.

> I guess one way to fix this is to have a large session timeout like 
> an hour or two, but we prefer not to do that for obvious reasons.

Or use Chuck's suggestion to change the timeout for certain requests,
then change them back.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4XY/MACgkQ9CaO5/Lv0PBR8ACfWrOf+3q1k1jqgokp4og7dzPn
VJYAoI1BP6QvnfZub5TmxM2TweobIeLn
=I6BG
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message