cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change the timeout only for hmc ?? if so how??

Former Member
0 Kudos

How can I change timeout only for hmc??

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

@pradeep Sorry I Have not seen this for long ..here is your answer: Extend the de.hybris.platform.servicelayer.web.DefaultSessionCloseStrategy.class and override the method :setTimeoutOnHttpSessionCreation(HttpSession httpSession) and nullify it which now will take take value from your web.xml or implement your own strategy for timeout in this method...if you want to analyse the above class,it is present in coreserver.jar

Former Member
0 Kudos

we can write it in local. property file "default.session.timeout=123"

bhavirisetty
Active Participant
0 Kudos
Former Member
0 Kudos

can you please let me know how you resolved the issue?

Former Member
0 Kudos

it might work in later versions but we are using 5.6 and also resolved the issue successfully . tank you

Former Member
0 Kudos

hi Anishul, since version 6.1 there is platform support for web apps specific timeouts:

It is also possible to configure session timeout per web application. Just set the following property to a non-negative number in the local.properties file: [extension].session.timeout=1500

See https://help.hybris.com/6.2.0/hcd/8c005cde86691014a49ce1de22f3897f.html for more info.

Cheers, Tobias

bhavirisetty
Active Participant
0 Kudos

Hi,

I think you cannot do this, Though you configure session timeout in hmc > web.xml it may not work properly because hybris depends on default.session.timeout attribute.

However if any one has idea about it , Do let us know.

Thanks