How to Set, Get and Delete Cookies in WordPress

Unlike most modern web applications, WordPress is stateless. If you’re going to build a web application on top of WordPress, you’re going to need some sort of a system to maintain sessions.

Cookies provide a simple, conventional mechanism to manage certain settings for users who have signed in on the front-end.

In this article, we’ll briefly discuss cookies, why they’re needed in WordPress and how webmasters can benefit from them. We’ll also walk you through the process of setting, getting and deleting cookies.

Let’s get started!

Continue reading %How to Set, Get and Delete Cookies in WordPress%

Source: Sitepoint