# Session Expiry time to 0

**URL:** <https://forum.rasa.com/t/session-expiry-time-to-0/55741>\
**Category:** Rasa Open Source\
**Created:** [October 12, 2022, 3:52pm UTC](https://forum.rasa.com/t/session-expiry-time-to-0/55741 "2022-10-12T15:52:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![uddaishya22](https://avatars.discourse-cdn.com/v4/letter/u/e99b99/32.png) [@uddaishya22](https://forum.rasa.com/u/uddaishya22)\
**Post date:** [October 12, 2022, 3:52pm UTC](https://forum.rasa.com/t/session-expiry-time-to-0/55741/1 "2022-10-12T15:52:52Z")

</div>

Hi Community,

As of now our bot has session\_expiration\_time : 60 (mins). We have a functionality to conduct surveys from our bot, but the roadblock is that if user responds after 60 mins, bot loses the context and is not able to capture the slot values thus spoiling the use-case. So can we set `session_expiration_time` to `0` ? will it affect the performance? If yes do we have any other alternative to keep the active form context even after `action_session_start` event?

@Juste Please help.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [October 13, 2022, 2:42am UTC](https://forum.rasa.com/t/session-expiry-time-to-0/55741/2 "2022-10-13T02:42:52Z")

</div>

> So can we set `session_expiration_time` to `0`

Yes

> will it affect the performance?

No

> do we have any other alternative to keep the active form context even after `action_session_start` event?

You can store it in your own db

Juste’s [left Rasa in April](http://forum.rasa.com/t/farewell/52713)

---

<div class="post-metadata">

**Author:** ![uddaishya22](https://avatars.discourse-cdn.com/v4/letter/u/e99b99/32.png) [@uddaishya22](https://forum.rasa.com/u/uddaishya22)\
**Post date:** [October 13, 2022, 6:38pm UTC](https://forum.rasa.com/t/session-expiry-time-to-0/55741/3 "2022-10-13T18:38:20Z")

</div>

Hi @stephans,

I tried to set the `session_expiration_time` to `0` and after training while making rasa server up it gives following error:

```auto
2022-10-13 23:22:32,797 [INFO] Rasa server is up and running.
2022-10-13 23:37:53,632 [INFO] Starting Rasa server on http://localhost:5002
2022-10-13 23:37:53,648 [INFO] Loading model models\20221013-233700.tar.gz...
2022-10-13 23:37:55,632 [INFO] Loading model models\20221013-233700.tar.gz...
2022-10-13 23:38:02,163 [INFO] Added 'SpacyNLP' to component cache. Key 'SpacyNLP-en_core_web_md'.
2022-10-13 23:38:48,440 [ERROR] Could not load model due to Domain specification has changed. You MUST retrain the policy. Detected mismatch in domain specification. The following states have been 
	 - removed: action_unlikely_intent 
	 - added: .

```
