Christopher,

*Is there a big change of how tomcat manage sessions, in versions before
tomcat 6.  still I'm little confused about the behavior of my application
  *

On Thu, Jun 18, 2015 at 11:39 AM, chedana jayasinghe <
chedanajayasin...@gmail.com> wrote:

> request goes to a doPost method of a servlet and there it used to return
> some values in the response, and there is a one filter which encode
> request's characters to UTF-8. But how come it effects the session last
> accessed time get updated, because as to my knowledge  It is monitored by
> the servlet container and all the filters are within the servlet container
> .
>
> On Tue, Jun 16, 2015 at 12:39 AM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Chedana,
>>
>> On 6/15/15 9:07 AM, chedana jayasinghe wrote:
>> > Christopher,
>> >
>> > I'm not using "strict servlet compliance", still *I've tried
>> > setting * org.apache.catalina.core.StandardHostValve.ACCESS_SESSION
>> > system property to false in catalina properties but no luck. still
>> > the problem is same. Javascript heartbeat  keeps the session alive
>> > only in tomcat 7 and higher versions.
>> >
>> > On Thu, Jun 11, 2015 at 6:59 PM, Christopher Schultz <
>> > ch...@christopherschultz.net> wrote:
>> >
>> > Chedana,
>> >
>> > On 6/11/15 12:42 AM, chedana jayasinghe wrote:
>> >>>> HI, In my web application, in a jsp there is a javascript
>> >>>> which sends request to a servlet every twenty seconds, so it
>> >>>> kills my applications user idle time tracking by resetting
>> >>>> the  lastAccessed time. the funny thing is lastAccessed time
>> >>>> doesn't get updated in tomcat  6 and my applications idle
>> >>>> time tracking works fine in it, but in 7 it gets updated and
>> >>>> kills that functionality of the application . so I'm little
>> >>>> bit confused about the changes in the session tracking of
>> >>>> tomcat 6 and tomcat 7
>> >
>> > Are you using "strict servlet compliance"?
>> >
>> > If so, you will want to set the
>> > org.apache.catalina.core.StandardHostValve.ACCESS_SESSION system
>> > property to false and re-try your tests.
>> >
>> > If you are upgrading from Tomcat 6 to Tomcat 7:
>> >
>> > 1. Don't bother going to 7.0.23 (almost 4 years old). Go all the
>> > way up to 7.0.62.
>> >
>> > 2. You may want to skip Tomcat 7 altogether and go all the way up
>> > to Tomcat 8.0.23.
>> >
>> > -chris
>>
>> What does your application actually do when the heartbeat comes in?
>> Don't forget the various Filters that might also be processing the
>> request on the way in or out.
>>
>> - -chris
>> -----BEGIN PGP SIGNATURE-----
>> Comment: GPGTools - http://gpgtools.org
>>
>> iQIcBAEBCAAGBQJVfyMBAAoJEBzwKT+lPKRYXsYP/0osrijFMEDL4HW/H6zZiCyC
>> brpPG5HCLr9BT8zNGzj9r4iMCp10w8smTtQDbpyX73UNKfxKtX119myJLDuoJOlV
>> nYv3UCn5g8apNwylFGl59KSCtmpytW1kNinP0D/iQWhUdnbDOZnWczlGW6QupNr0
>> I4+NTizUu7t77Ba60uLM78jf2R2J1ujRL4+epXXS0IKPuOmUvU8AJWWQtbXwS+Wu
>> JbAw1OYpffcHJSNZWLYTB4q9NKE3of65Cs4LPAHtJ8lOlauhLiYC1Qc2jjMeiWlu
>> Ho0FKyCvkns2Rqay/wqJrmhJJNfeAwtvAhMQIz8PbY5jPl2FF8YAvaCju6/17LyC
>> uOVVHyoUhmvF4LdOS55ut7XO+LE0pTQzwOoN5kKk4opsomHLd32icBFzrQU+TH3b
>> Pa3MTJKONIocoh/DNSA0dVvTaGeeGDDdwEmcjZHfPPHY57IZEmqtLsCuVUlf4m7Q
>> xNWa9+Yoas53Oe4T/S2s3FnPiH3kT3bS1MCqaXDQwUcVc+BwpcsBWkCdgsJxn7DC
>> 3zzLrEB/Wiw+xdQhYIhIKwUytV5HLPU1wwZzqFgIJqnVfzx/keSbXwsszkk2TUz8
>> iRx2yGdy8bxAkYncTJKd/0hBwKcVm/kz2AKQYYo1txITRORP+Wu+c8xwhlNIQuS9
>> dhvquvV3qsoJ8H1xZvEu
>> =oyiY
>> -----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