cookie

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.

OpenSSO and PHP - A PHP script to validate a user's OpenSSO cookie

PHP OpenSSO FAQ: Can you share a PHP script to validate a user's OpenSSO cookie?

OpenSSO and PHP - PHP login scripts to manually authenticate OpenSSO users

PHP OpenSSO FAQ: Can you share a PHP script to manually authenticate OpenSSO users during a login process?

OpenSSO and PHP - A custom PHP script to manually log out of an OpenSSO single sign-on session

This blog post is part of a series of planned articles regarding OpenSSO and PHP, specifically how to use the OpenSSO Identity Services from within a PHP application.

Syndicate content