vendredi 3 juin 2016

Implementing Session in Wordpress Using Transient API

I need to store some data in the user's session in a Wordpress project. I know that there is multiple ways for these purpose like using php native session and etc.
But I want to know is it a good idea to use Wordpress transient api for this purpose? It can act like a database session, and I can use users unique id to store related data for each user, then I can take advantage of a proper hook to remove the data on logout.
Is there any downside or problem? (except probable performance issues)
Any help or suggestion would be appreciated.
Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire