javascript - Scala: Play Framework 2 ignores httpOnly flag in application.conf -


i want use i18n in play-application (play 2.1, scala). chosen language stored in play_lang-cookie, unfortunately cookie httponly. means can't read value in javascript files.

i tried changing httponly-value in application.conf, didn't work.

application.session.httponly=false 

i haven't found on yet, i'd appreciate help!

you can pass scala template in samy way session

@(implicit session:play.api.mvc.session, lang:play.api.i18n.lang) 

now can pass @lang.code javscript. same functianlity diffrent approach.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -