# Howto create a session variable in flash/actionscript

**URL:** https://forum.kirupa.com/t/howto-create-a-session-variable-in-flash-actionscript/307014
**Category:** Uncategorized
**Created:** [March 26, 2010, 3:54am UTC](https://forum.kirupa.com/t/howto-create-a-session-variable-in-flash-actionscript/307014 "2010-03-26T03:54:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![michaelafoley](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@michaelafoley](https://forum.kirupa.com/u/michaelafoley)
#### Post date: [March 26, 2010, 3:54am UTC](https://forum.kirupa.com/t/howto-create-a-session-variable-in-flash-actionscript/307014/1 "2010-03-26T03:54:42Z")

</div>

I have an .fla with various actionscript 3 modules. I’m used to jsp and there is a concept of session variables. actionscript also appears to have session variables, but when I try to set one using:

SessionVar.Set("%navButton%", “about”);

I get the error: 1120: Acccess of undefined property SessionVar.

What am I doing wrong?
