cookie

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:

Perl CGI cookies - How to get and set cookies in Perl CGI programs

In Part 1 of this series, we provided some background information about cookies, discussing the problem of state maintenance in web applications. We discussed how cookies can help solve this problem, and outlined the drawbacks and limitations of cookies. We even discussed a few examples of how you might use cookies in a customizable web site or e-commerce site.

A collection of PHP scripts for OpenSSO

Before I get too far away from this code, I wanted to present my examples related to PHP and OpenSSO in a more logical order than the way in which I originally posted them. To that end, here is my collection of PHP/OpenSSO tutorials, showing how a PHP application can manually interact with an OpenSSO server in a single sign-on, identity-management world:

The PHP "headers already sent" error message

Still in my early days working with PHP, I've learned that it's really easy to generate the dreaded "headers already sent" error message. If for some reason you actually want to generate this error message intentionally, I've learned that all you have to do is try to send HTML body content (any non-header content) before calling the header() or setcookie() methods, and you'll get that PHP error message right away.