# Collect a list of strings and update list in session

**URL:** <https://community.gatling.io/t/collect-a-list-of-strings-and-update-list-in-session/2547>\
**Category:** Gatling (Open-Source)\
**Created:** [September 22, 2015, 7:20pm UTC](https://community.gatling.io/t/collect-a-list-of-strings-and-update-list-in-session/2547 "2015-09-22T19:20:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarrowwx](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jarrowwx](https://community.gatling.io/u/jarrowwx)\
**Post date:** [September 22, 2015, 7:20pm UTC](https://community.gatling.io/t/collect-a-list-of-strings-and-update-list-in-session/2547/1 "2015-09-22T19:20:26Z")

</div>

Try:

session.set( “theResources”, List( session(“theResources”).as[List[String]] ) :::List( current\_dynamic\_resource\_string )

If that doesn’t work, post the code that is accessing the strings.
