Play Framework session cookie name

The Play Framework session cookie name is PLAY_SESSION. You can find this in the Play docs here.

Here’s a quote from that page:

“It’s important to understand that Session and Flash data are not stored by the server but are added to each subsequent HTTP request, using the cookie mechanism. This means that the data size is very limited (up to 4 KB) and that you can only store string values. The default name for the cookie is PLAY_SESSION. This can be changed by configuring the key session.cookieName in application.conf.”

I come from a Java servlet/Tomcat environment, so that part where the data size is limited is very important to know.

Add new comment

Anonymous format

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul type> <ol start type> <li> <pre>
  • Lines and paragraphs break automatically.