You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone,
I'm running into an issue which I'm not clear why it's happening. I have 2 controllers: clients and programs.
In clients I have:
this.session.set('clientId', '1234');
in programs:
var clientId = this.session.get('clientId');
I have 2 routes defined so I can select a client from a list, and upon selection, navigate to a page with a list of programs for the selected client.
clientId is null when I get to the programs controller. I'm using node-inspector to view 'this.session' and I see the clientId getting set while in the clients controller. Like I said, in programs, it's null. If I click a link to go back to the clients listing, I can see in node-inspector, clienId appear again. It's like one session object per controller...
development.js is set to:
sessions: {
store: 'cookie'
, key: 'sid'
, expiry: 3600
}
and secrets.json has been created also.
Interesting thing though, if I set sessions to be 'memory' everything works and clientId has the value appear on both controllers.
Could anyone clarify this for me? Thanks!
The text was updated successfully, but these errors were encountered:
What would be the best way to verify this? Using Chrome, I can see the cookie getting set on first load, then when I go to the clients list, I see the cookie's sdata getting more 'stuff'... since it's encrypted, I cannot see the actual contents... is that what you mean? Thank you so much for your help, btw.
Hello everyone,
I'm running into an issue which I'm not clear why it's happening. I have 2 controllers: clients and programs.
In clients I have:
this.session.set('clientId', '1234');
in programs:
var clientId = this.session.get('clientId');
I have 2 routes defined so I can select a client from a list, and upon selection, navigate to a page with a list of programs for the selected client.
clientId is null when I get to the programs controller. I'm using node-inspector to view 'this.session' and I see the clientId getting set while in the clients controller. Like I said, in programs, it's null. If I click a link to go back to the clients listing, I can see in node-inspector, clienId appear again. It's like one session object per controller...
development.js is set to:
sessions: {
store: 'cookie'
, key: 'sid'
, expiry: 3600
}
and secrets.json has been created also.
Interesting thing though, if I set sessions to be 'memory' everything works and clientId has the value appear on both controllers.
Could anyone clarify this for me? Thanks!
The text was updated successfully, but these errors were encountered: