[wp-hackers] Sessions and parse query

Rafael Ehlers rafaehlers at gmail.com
Fri Jun 15 19:45:59 UTC 2012


Indeed, just use it inside init hook:

function init_session()
 {
   session_start();
 }

add_action('init', 'init_session', 1);

 more: http://www.kanasolution.com/2011/01/session-variable-in-wordpress/

On Fri, Jun 15, 2012 at 4:44 PM, Dion Hulse (dd32) <wordpress at dd32.id.au>wrote:

> On 15 June 2012 15:42, scribu <mail at scribu.net> wrote:
> > WordPress does not play well with sessions. Try using a plain cookie
> > instead
>
> huh? How do you come up with that conclusion?
> Plenty of plugins use Sessions, and sessions are simply a Cookie with
> a Server side data store.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list