-----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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to