15

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

Govind Singh
  • 15,282
  • 14
  • 72
  • 106
James Leyton
  • 171
  • 5

1 Answers1

22

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!

KrisM82
  • 335
  • 2
  • 11