how to change session language in scope

panda1
Kilo Guru

in global ,i user gs.getSession().setLanguage() to change language

Is there a similar way to change session language in scope application

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi

the following code should work. I just tested it in a multi-language instance and in a custom scope:

var util = new global.I18nUtils();

util.setLanguage('en');

Kind regards
Maik

View solution in original post

2 REPLIES 2

Maik Skoddow
Tera Patron
Tera Patron

Hi

the following code should work. I just tested it in a multi-language instance and in a custom scope:

var util = new global.I18nUtils();

util.setLanguage('en');

Kind regards
Maik

Cecile
Kilo Explorer

Are you using session_start() at the top of every page? I don't think $_SESSION really has a scope as it accessible everywhere once a session is started. Read this, it should help you out.

 

MyCCPay