# Opensearch Dashboards Session TTL does not work

**URL:** <https://forum.opensearch.org/t/opensearch-dashboards-session-ttl-does-not-work/8675>\
**Category:** OpenDistro\
**Tags:** troubleshoot\
**Created:** [February 18, 2022, 10:09am UTC](https://forum.opensearch.org/t/opensearch-dashboards-session-ttl-does-not-work/8675 "2022-02-18T10:09:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JDev](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JDev](https://forum.opensearch.org/u/JDev)\
**Post date:** [February 18, 2022, 10:09am UTC](https://forum.opensearch.org/t/opensearch-dashboards-session-ttl-does-not-work/8675/1 "2022-02-18T10:09:56Z")

</div>

Hello, I found these settings to set Sesion TTL in one github issue. They are supposed to work, but they don’t.

How do I set Sesion TTL to 1 day in Opensearch Dashboards. Now with these settings Sesion TTL are still 1 hour.

Thanks!

```auto
  opensearch-dashboards:
    image: opensearchproject/opensearch-dashboards:${KIBANA_VERSION}
    ports:
      - 5601:5601
    environment:
      OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
      opendistro_security.cookie.ttl: 86400000
      opendistro_security.session.ttl: 86400000
      opendistro_security.session.keepalive: true
    networks: [monitoring]
    tty: true

```

---

<div class="post-metadata">

**Author:** ![JDev](https://avatars.discourse-cdn.com/v4/letter/j/e495f1/32.png) [@JDev](https://forum.opensearch.org/u/JDev)\
**Post date:** [March 16, 2022, 9:13am UTC](https://forum.opensearch.org/t/opensearch-dashboards-session-ttl-does-not-work/8675/2 "2022-03-16T09:13:23Z")

</div>

Is it working for everyone?  
UP!
