Re: Keeping a session active with ajax

2021-03-15 Thread Maxim Solodovnik
I was able to warm-up HttpSession by adding `fetch('...', {cache: "no-store"})` to JS code So there should be no problems with AJAX :) On Tue, 16 Mar 2021 at 01:45, Martin Grigorov wrote: > > Chris, > > On Mon, Mar 15, 2021, 18:28 Christopher Schultz < > ch...@christopherschultz.net> wrote: > > >

Re: Keeping a session active with ajax

2021-03-15 Thread Martin Grigorov
Chris, On Mon, Mar 15, 2021, 18:28 Christopher Schultz < ch...@christopherschultz.net> wrote: > Martin, > > On 3/15/21 04:08, Martin Grigorov wrote: > > Hi Maxim, > > > > On Mon, Mar 15, 2021 at 9:46 AM Maxim Solodovnik > > wrote: > > > >> Maybe offtopic > >> but websocket requests seems to not

Re: Keeping a session active with ajax

2021-03-15 Thread Jerry Malcolm
On 3/15/2021 2:42 AM, Martin Grigorov wrote: Hi, Which version of Tomcat ? I'm running Tomcat 8.5.30 on AWS Linux 2. On Mon, Mar 15, 2021 at 8:25 AM Jerry Malcolm wrote: In my app a logged in user will access a page. But then all of the interaction on the page is done back and forth wit

Re: Keeping a session active with ajax

2021-03-15 Thread Christopher Schultz
Martin, On 3/15/21 04:08, Martin Grigorov wrote: Hi Maxim, On Mon, Mar 15, 2021 at 9:46 AM Maxim Solodovnik wrote: Maybe offtopic but websocket requests seems to not warming up the HttpSession The websocket messages do not bring the JSESSIONID cookie/request parameter and there is no way

Re: Keeping a session active with ajax

2021-03-15 Thread Martin Grigorov
Hi Maxim, On Mon, Mar 15, 2021 at 9:46 AM Maxim Solodovnik wrote: > Maybe offtopic > but websocket requests seems to not warming up the HttpSession > The websocket messages do not bring the JSESSIONID cookie/request parameter and there is no way to lookup the http session from the web container

Re: Keeping a session active with ajax

2021-03-15 Thread Maxim Solodovnik
Maybe offtopic but websocket requests seems to not warming up the HttpSession Tomcat 9.0.44 Wicket 9.2.0 :) On Mon, 15 Mar 2021 at 14:43, Martin Grigorov wrote: > > Hi, > > Which version of Tomcat ? > > On Mon, Mar 15, 2021 at 8:25 AM Jerry Malcolm > wrote: > > > In my app a logged in user will

Re: Keeping a session active with ajax

2021-03-15 Thread Martin Grigorov
Hi, Which version of Tomcat ? On Mon, Mar 15, 2021 at 8:25 AM Jerry Malcolm wrote: > In my app a logged in user will access a page. But then all of the > interaction on the page is done back and forth with ajax calls to the > server. The ajax activities within the page could last well over th