# Verse global variables no longer working, even on previous uploads

**URL:** <https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [September 12, 2023, 3:00pm UTC](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404 "2023-09-12T15:00:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDDev](https://forums.unrealengine.com/u/DDDev)\
**Post date:** [September 12, 2023, 3:00pm UTC](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404/1 "2023-09-12T15:00:31Z")

</div>

Today with the latest update to 26.10 the 25.20 facility for global variables ([Patch Notes for Creative, UEFN v25.20 | Fortnite News](https://fortnitenews.com/patch-notes-for-creative-uefn-v25-20/#:~:text=Verse%20Now%20Supports%20Global%20Variables,for%20any%20type%20%60t%60). ) appears to be broken.

We have been using this to save information between rounds, however this now no longer works, with the values remaining in their default state.

This is causing us problems with our game, but it is perhaps important to note that uploads that previously worked before the update are no longer working, suggesting that this is a problem with the server/backend.

Currently this issue will prevent us from shipping, and might be causing problems for other published games.

Any help would be appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [September 12, 2023, 3:50pm UTC](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404/2 "2023-09-12T15:50:26Z")

</div>

The status of UCB-903 incident has been moved from ‘Done’ to ‘Closed’.

---

<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 13, 2023, 2:11pm UTC](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404/3 "2023-09-13T14:11:27Z")

</div>

Guess it’s a rest day for me then, none of my projects work 😃

---

<div class="post-metadata">

**Author:** ![ronisskuupu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ronisskuupu](https://forums.unrealengine.com/u/ronisskuupu)\
**Post date:** [September 14, 2023, 8:01pm UTC](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404/4 "2023-09-14T20:01:03Z")

</div>

Same thing here, just stopped working out of nowhere ☹

The digest points out this is not the correct way to use global variables as the GetSession() method is not reliable, does anyone know if that’s the case? We really should not be using Global Variables to persist data between rounds?

---

<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 14, 2023, 10:45pm UTC](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404/5 "2023-09-14T22:45:24Z")

</div>

No it’s just a bug that I hope will receive on hotfix soon, they didn’t talk about it on Fortnite Status though 😨

The `GetSession()` was introduced last update so I guess it’s still fresh. I really hope they fix this soon though

---

<div class="post-metadata">

**Author:** ![Ep8Script](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ep8script/32/1170494_2.png) [@Ep8Script](https://forums.unrealengine.com/u/Ep8Script)\
**Post date:** [September 15, 2023, 11:48am UTC](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404/6 "2023-09-15T11:48:23Z")

</div>

The digest says:

> Type for which there is a single instance per round. Use `GetSession` to get the current round’s `session` instance.

This means that the `session` object currently refers to the current _round_, not the game, so the variables won’t persist between rounds. It’s weird that they broke it but it seems intended, though it may work again in the future:

> Note: may be changed in a future release to a single instance per game. Round-local behavior should not be relied upon.

---

<div class="post-metadata">

**Author:** ![t.tutiya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/t.tutiya/32/924637_2.png) [@t.tutiya](https://forums.unrealengine.com/u/t.tutiya)\
**Post date:** [September 28, 2023, 1:12pm UTC](https://forums.unrealengine.com/t/verse-global-variables-no-longer-working-even-on-previous-uploads/1292404/7 "2023-09-28T13:12:09Z")

</div>

For more infomation.

> [@MAJOR weak\_map GetSession() broken in 26.10](https://forums.unrealengine.com/t/major-weak-map-getsession-broken-in-26-10/1292369/10):
>
> This is unfortunately intended. Use of session as a key in a module-scoped var weak\_map may eventually gain back support for cross-round state (hence the scary “Note: …” part of the doc), but it was removed in 26.10. To protect against a behavior change (when cross-round state is added back), make sure to initialize your state at the beginning of OnBegin in a creative\_device, e.g. if: set GlobalInt[GetSession()] = 0
