Press "Enter" to skip to content

Using Sessions in WordPress

WordPress does not, by default, allow regular php sessions to be used. You can enable them, though.

The easiest way I’ve found is to add in your config file, before the call to wp-setting:

And then add this to your functions to make sure the session starts / ends correctly:

Courtesy of http://silvermapleweb.com/using-the-php-session-in-wordpress/

    Leave a Reply