# Session Variable, works in my editor session, not for my published maps?

**URL:** <https://forums.unrealengine.com/t/session-variable-works-in-my-editor-session-not-for-my-published-maps/1313650>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [September 27, 2023, 3:33am UTC](https://forums.unrealengine.com/t/session-variable-works-in-my-editor-session-not-for-my-published-maps/1313650 "2023-09-27T03:33:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [September 28, 2023, 11:08am UTC](https://forums.unrealengine.com/t/session-variable-works-in-my-editor-session-not-for-my-published-maps/1313650/2 "2023-09-28T11:08:43Z")

</div>

`weak_maps` are supposed to store variable during a single round, not between games or rounds. See [session class](https://dev.epicgames.com/documentation/en-us/uefn/verse-api/versedotorg/simulation/session) “Type for which there is a single instance per round”  
The docs say it could change in the future to one instance per game

> [@LoPing](#):
>
> The game ends, and when I hit “play” again, I keep all my session values. Perfection.

This is actually a bug, see [Verse Internal Error - #4 by im\_a\_lama](https://forums.unrealengine.com/t/verse-internal-error/1300779/4)

So I’m not sure what you’re trying to do exactly, but maybe using a custom round system instead would work better, if I understood correctly 👍

SEE: [Verse global variables no longer working, even on previous uploads](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404)  
EDIT: I’m not sure about the fact that it resets between rounds, maybe someone can help me with that  
EDIT2: If that’s the case, this is something they reverted, it used to work between rounds but not anymore, this is why the “official” sample is not working.

---

_[View the full topic](https://forums.unrealengine.com/t/session-variable-works-in-my-editor-session-not-for-my-published-maps/1313650)._
