cancel
Showing results for 
Search instead for 
Did you mean: 

Extending Session Timeout

stephenb
Champ in-the-making
Champ in-the-making
Hi - I am trying to extend the Alfresco Share session length. I changed the sessionTimeout value in web.xml and created a custom ticketComponent bean to override the bean defined in authentication-services-context.xml. However, the session is still timing out after 30 minutes. Any thoughts on why this would be?

Thanks,

Stephen
1 REPLY 1

sgomez
Champ in-the-making
Champ in-the-making
Hi, I tried accomplishing the same thing, and have come up successfully (needs more testing though)

What I've done so faris create a custom-authentiation-serices-context.xml where all my custom config files are located.  Then I just copied and paste the full bean.  Didn't know if it was going to work, but surprisingly it did.

<beans>
    <!– The ticket component.                                              –>
    <!– Used for reauthentication                                          –>
    <bean id="ticketComponent"
      class="org.alfresco.repo.security.authentication.InMemoryTicketComponentImpl">
        <property name="ticketsCache">
            <ref bean="ticketsCache"/>
        </property>
        <!– The period for which tickets are valid in XML duration format. –>
        <!– The default is P1H for one hour. or PT1H                              –>
        <property name="validDuration">
            <value>PT1M</value>
        </property>
        <!– Do tickets expire or live for ever?                            –>
        <property name="ticketsExpire">
            <value>true</value>
        </property>
        <!– Are tickets only valid for a single use?                       –>
        <property name="oneOff">
            <value>false</value>
        </property>
      <!– If ticketsEpire is true then how they should expire –>
      <!– AFTER_INACTIVITY, AFTER_FIXED_TIME, DO_NOT_EXPIRE  –>
      <!– The default is AFTER_FIXED_TIME –>
      <property name="expiryMode">
            <value>AFTER_INACTIVITY</value>
        </property>
    </bean>

What you want to change are validDuration, ticketsExpire, and expiryMode.

Hope this helped.