[wp-hackers] The WordPress way to store temporary per user data (sessions)?

Ozh ozh at ozh.org
Thu Sep 16 06:20:39 UTC 2010


Why use transients and, in most case where an object cache is not
used, issue an extra SQL query?

I'd rather use regular PHP sessions for session data

> However, since in general WP tends to put temporary data in the
> database (I'm thinking of WP transients) and has over time moved away
> from core file caching, I would speculate that if there were to be a
> WP way, it would be to use session_set_save_handler and define
> callbacks that interact with the database.

-- 
http://ozh.org/


More information about the wp-hackers mailing list