This topic is locked
[SOLVED]

 multi language SESSION default don't work

10/6/2019 10:07:53 PM
ASPRunnerPro General questions
S
silverpc author

hi,

i create a multi language application with default language as English

when i log in without choosing a language, all appears in English as default but my drop-down base on the language doesn't work, i get a blank drop down that says please select. i have to select other language like Spanish or Italian and then go back to select English in order of my drop down to work
im using

languages=':SESSION.language'

to locate the language in use.
when manually select any other language works Ok
any idea how can i solve this? thank you

admin 10/7/2019

Session("language") will only be populated if you selected the language manually from the dropdown box with languages.
You can try using the following in AfterAppInit event to make sure that Session("language") is always populated:

Session("language") = mlang_getcurrentlang()
S
silverpc author 10/7/2019

Thanks! works perfect.