WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to create a simple user session on Wordpress, like a mini-membership kind of thing? Would this conflict with WP's general user sessions, or is it possible to set up a simple uesr/pass combo in your database and use this to create a sub-membership system?

share|improve this question
up vote 0 down vote accepted

Instead of forcing Wordpress to have a custom membership system, if you want to use your own small membership feature, then you may not have to use sessions at all.

For instance, if you want to password protect a specific set of pages, you could make one page require authentication, using a username and password like you mention. Once the user has accessed this page, validated by the database of users separate from wp_users, you can use ajax to keep this "session" (or appearance therefore) alive. That way you achieve your needed functionality without having to program something that kind of goes against the nature of the Wordpress system.

share|improve this answer
This is a perfect solution actually thanks. – rocketman27 Jul 24 '11 at 1:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.