[wp-hackers] Why WordPress killing Session ?
otto at ottodestruct.com
Tue Feb 12 18:52:46 UTC 2013
On Tue, Feb 12, 2013 at 12:39 PM, William Satterwhite
<whsatterwhite at gmail.com> wrote:
> Can someone supplement this thread with what WordPress utilizes in lieu of
> sessions? Maybe that could be used as an educational piece for the original
> poster and why they probably shouldn't use them.
WordPress uses a cookie to identify the user between requests, in the
same way that sessions would use a cookie to identify the session id.
But generally speaking, WordPress doesn't have any need to persist
variables between requests, so it doesn't need sessions or much of
anything similar. You could probably use user-meta instead for most
cases where sessions would be useful, unless you were trying to store
an large amount of data.
More information about the wp-hackers