# After Setting Session attribute , value not able to access values.

**URL:** https://community.gatling.io/t/after-setting-session-attribute-value-not-able-to-access-values/1369
**Category:** Gatling (Open-Source)
**Created:** [September 5, 2014, 2:21pm UTC](https://community.gatling.io/t/after-setting-session-attribute-value-not-able-to-access-values/1369 "2014-09-05T14:21:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Swapnil\_Kotwal](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@Swapnil\_Kotwal](https://community.gatling.io/u/Swapnil_Kotwal)
#### Post date: [September 5, 2014, 2:21pm UTC](https://community.gatling.io/t/after-setting-session-attribute-value-not-able-to-access-values/1369/1 "2014-09-05T14:21:33Z")

</div>

Here i have saved **trending\_content** variable in Session but not able to access it, Any thoughts please?

val land = exec(http(“Now Tab”)  
.get("/now/trending\_content?callback=trendingContentLoaded.store")  
.check(status.is(200))  
.check(bodyString.saveAs(“body”)))  
.exec(session =\> {  
// print the Session for debugging, don’t do that on real Simulations  
val trending\_content = session(“body”).as[String].replace(“toremoveSomething”, “”)  
println(" Wooooo \<\<\<\<\>\>\> " + trending\_content)  
**session.set(“trendingVideoEmbed”,** **trending\_content)**  
session})  
.pause(1)  
.exec(http(“Move to Trending Asset Deatil Page.”)  
.get("/video/"+ **“${trendingVideoEmbed}”** )  
.check(status.is(200))  
.check(bodyString))  
.pause(1)

It throws _[ERROR] i.g.h.a.HttpRequestAction - No attribute named ‘trendingVideoEmbed’ is defined_
