# Gebruikerssessies behouden bij het migreren tussen hosts

**URL:** <https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451>\
**Category:** Self-hosting\
**Created:** [6 oktober 2020 om 22:07 UTC](https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451 "2020-10-06T22:07:27Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [7 oktober 2020 om 13:06 UTC](https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451/10 "2020-10-07T13:06:49Z")

</div>

> [@TallTrees](#):
>
> I am now pondering whether there should be a feature request for an option to export this key in backups?

It is a delicate balancing act between security and convenience.

At the moment if someone manages to steal a discourse backup, they have all the data on the forum. But they do not have the ability to log in to the live forum. Passwords are hashed, api keys are hashed, and session cookies are encrypted.

If we included the secret inside the backup, then anyone in possession of a backup could gain access to the live forum, and conduct phishing/fraud/etc.

> [@TallTrees](#):
>
> this is something I shall try out on a sandbox instance. I’ll see if I can report back if it works or not 🙂

Sounds great! Totally open to having a topic here on Meta explaining how to migrate from a redis secret key to an app.yml secret key. It could be linked from the ‘move to a different server’ topic.

---

_[View the full topic](https://meta.discourse.org/t/preserving-user-sessions-when-migrating-between-hosts/166451)._
