# MAJOR weak\_map GetSession() broken in 26.10

**URL:** <https://forums.unrealengine.com/t/major-weak-map-getsession-broken-in-26-10/1292369>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [September 12, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/major-weak-map-getsession-broken-in-26-10/1292369 "2023-09-12T14:33:30Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![UltimateLambda](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ultimatelambda/32/916183_2.png) [@UltimateLambda](https://forums.unrealengine.com/u/UltimateLambda)\
**Post date:** [September 27, 2023, 5:02pm UTC](https://forums.unrealengine.com/t/major-weak-map-getsession-broken-in-26-10/1292369/10 "2023-09-27T17:02:32Z")

</div>

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.

```auto
if:
  set GlobalInt[GetSession()] = 0

```

---

_[View the full topic](https://forums.unrealengine.com/t/major-weak-map-getsession-broken-in-26-10/1292369)._
