Expand my Community achievements bar.

SOLVED

Login-Token cookie expiration time configure

Avatar

Former Community Member

Hi,

We are using LDAP login module and have overridden most part of sling form based authentication. I want to configure the login token duration and make it a few days if user indicate so. I know i can configure tokenExpiration within LDAP_login.conf but if i do that then for every request that will be the default time. 

Can anybody advice how different token times are set for both Author and publisher instances. Is there any configuration that i can override and use. I see that .token expiration for publish is 2 hours and for Author is 8 hours.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Kumar,

 You can create a custom configuration property to set the expiration time and use the same in you code to delete the cookie.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Kumar,

 You can create a custom configuration property to set the expiration time and use the same in you code to delete the cookie.