found this blog which might be helpful https://redisson.org/articles/redis-based-tomcat-session-management.html
Le mer. 2 mars 2022, à 21 h 14, Sundeep Kumar Paulraj <sd.kumar...@gmail.com> a écrit : > Hi Saicharan Burle, > > Within the conf dir have the context.xml file, we can have the redis > server information here which would assist us with session permistence. > Also note that we might have to update the jar file in the relevant library > .. > > here i am sharing an abstract > > <Context> > <WatchedResource>WEB-INF/web.xml</WatchedResource> > <Valve > className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve"/> > <Manager > className="com.orangefunction.tomcat.redissessions.RedisSessionManager" > sentinelMaster="<REDIS_SENTINEL_MASTER_NAME>" > sentinels="<REDIS-HOST>:PORT,<REDI-HOST2>:PORT" > sessionPersistPolicies="SAVE_ON_CHANGE" > database="<DATABASE_NUMBER_IN_REDIS>" > maxInactiveInterval="60" > /> > <CookieProcessor > className="org.apache.tomcat.util.http.LegacyCookieProcessor" /> > </Context> > > > > Le mer. 2 mars 2022, à 20 h 50, <saicharan.bu...@wellsfargo.com.invalid> > a écrit : > >> Can you brief in detail, Can you send the sample configuration? >> >> Thanks, >> Saicharan Burle >> >> -----Original Message----- >> From: sundeep kumar <sd.kumar...@gmail.com> >> Sent: Wednesday, March 2, 2022 6:16 PM >> To: Tomcat Users List <users@tomcat.apache.org> >> Subject: Re: Need to retain session in server (Tomcat Apache) once user >> log in to till log off. >> >> I think we can use redis as session manager . Need to update it in >> context.xml . >> >> Sincerely || Sincèrement, >> Sundeep Kumar Paulraj >> >> > Le 2 mars 2022 à 20:43, saicharan.bu...@wellsfargo.com.invalid a écrit >> : >> > >> > Hi Team, >> > >> > Can you assist on how to retain session in server (Tomcat Apache) once >> user log in to till log off? we have two node instances half part of log >> is coming in one instance and other logs are coming in another instance >> for same user. >> > >> > Regards, >> > Saicharan Burle >> > CTO | Middleware Product Engineering >> > G=ETI DPS Middleware Prod Eng >> > >> > Block B1A Divyasree Orion | Hyderabad - 500081 | India MAC O2806-010 | >> > Cell +91 9966964321 >> > >> > MPE Service Desk: >> > https://urldefense.com/v3/__https://devops-servicedesk.wellsfargo.net/ >> > servicedesk/customer/portal/14/group/385?groupId=385__;!!F9svGWnIaVPGS >> > wU!5iQ3dmAfLWkY1flLCy3g5Af7GAcb_-2e-4GTkzTt253eHsGgQRdAEbi7nUznMWPmytb >> > zolw$ Enterprise Middleware Services: >> > https://wim-wiki.wellsfargo.com/pages/viewpage.action?spaceKey=MPE&tit >> > le=Middleware+Product+Engineering+Team+Home >> > Normal Working hours: 4:00 AM to 1:00 PM EST Upcoming PTO: >> > Be Green, Leave it on Screen!!! >> > [https://urldefense.com/v3/__http://f.connect.wellsfargoemail.com/i/38 >> > /2082566297/EML-224071_4726581_6304406_logo-stagecoach-eml_511x80.png_ >> > _;!!F9svGWnIaVPGSwU!5iQ3dmAfLWkY1flLCy3g5Af7GAcb_-2e-4GTkzTt253eHsGgQR >> > dAEbi7nUznMWPmy3Q89L8$ ] >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >>