简体   繁体   中英

How do you change the Play 2.1! Framework session cookie name

How do I configure the namne of the SESSION cookie in Play 2.1?

By default Play seems to create a cookie called 'PLAY_SESSION'. How can I customise the name?

Thanks

All of the details about the session can be configured within the

application.conf

The setting you want is

session.cookieName= COOKIE_NAME

Its worth looking at the Docs within the Http.scala file. Mainly around the Session case class.

Hope that helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM