[wp-hackers] How to let a servlet validate a wordpress session id?
otto at ottodestruct.com
Wed Jan 18 14:30:09 UTC 2012
WordPress doesn't use session ID's, so I'm not entirely sure what
you're talking about.
access the cookies, then it can run its own validation on them.
On Wed, Jan 18, 2012 at 7:51 AM, Nop <nopalot at iplace.at> wrote:
> I'm searching for a solution how to let a servlet:
> 1. validate a wordpress session id and
> 2. retrieve the corresponding wordpress user id.
> So far, i see two possible solutions to this requirement:
> 1. Store the wordpress session id and userid in a database table and let
> the servlet query the database. This looks like the simplest solution,
> the only question is how can wordpress be convinced to store the
> sessionid and userid in a database table?
> 2. Implement some kind of wordpress
> plugin/protocol/IPC-mechanism/whatever to enable the servlet a way to
> directly communicate with wordpress. Here I have to admit that I havn't
> done any PHP programming yet, so the main question is how could this
> approach be implemented?
> But maybe there's an even better/simpler solution. How would you solve
> this requirement?
> Any advice is welcome,
> thanks in advance!
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers