Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 505
James Leyton Avatar asked Jul 04 '13 15:07

James Leyton


1 Answers

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!

like image 197
KrisM82 Avatar answered Oct 20 '22 02:10

KrisM82