Session variable not passing between pages


#1

Hi I am trying to pass a session variable between two pages but unable to.

  1. User Log In
    dmx-on:success="carnival_local.set('user',email.value,{});browser1.alert(carnival_local.data.user);browser1.goto('index.php')">
    On success a session variable is set using a form field value. I can confirm this by having an alert display the new session value.
    47%20PM

However when I move to another page and try to display the same session value in another alert. It is empty

 Session here -  {{carnival_local.data.user}}

Can you explain what I am doing wrong? Note the APP ID for both pages are the same.


#2

Hi, are you using State Management to pass value between the two pages ?


#3

Yes I am : dmxStateManagement