Adding custom user session info in plugin
I want to add a small piece of data to be associated with each specific user reading my blog for this plugin I’m writing.
This piece of data is really just a flag, so could possibly even be added to the cookie. But, later (like a year later) I’m going to want to add a few more pieces of data, so maybe not.
Am wondering if wordpress has any capabilities builtin to support this? I’ve seen get_userdata and get_currentuserinfo, but it looks like these operated on hard coded variables. And you can’t add your own.
Should I look into implementing something from scratch based on PHP’s own user session capabilities?
- The topic ‘Adding custom user session info in plugin’ is closed to new replies.