Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-31T18:11:37-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=17082 2012-01-31T18:11:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17082&p=62037#p62037 <![CDATA[Re: Authentication/API Questions...]]>
This is a WordPress-specific question and is better suited for WordPress Answers, the WordPress Support Forum, or even StackOverflow.

Statistics: Posted by Raam Dev — January 31st, 2012, 6:11 pm


]]>
2012-01-31T10:32:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17082&p=62006#p62006 <![CDATA[Re: Authentication/API Questions...]]>
Will buy someone a beer that can help us out with this ASAP.

Thanks!

Aaron

Statistics: Posted by buzzmedia — January 31st, 2012, 10:32 am


]]>
2012-01-30T08:50:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=17082&p=61903#p61903 <![CDATA[Authentication/API Questions...]]>
Problem: The Java layer needs to know which user is logged into Wordpress (if any), so it can return the correct data to the flash layer.

Proposed Solution: The cookies that Wordpress should also be included with the requests from Flash to Java. Java could use those cookies to query against the Wordpress DB to obtain the user ID.

What we need to know:
1. Is it possible to get the user ID with the cookies from the DB or file system? Or is the cookie to user mapping only stored in memory?
2. What would be the method of obtaining the user id with the cookies? Could you provide some sample code that we could port to Java?

I'm not seeing a quick explanation / documentation on how to pull session info?

Wordpress comes with standard cookies, and i can read those cookies.
Example : name value
wordpress_fb2bd0842e9484b3403201e8bfb02ad3 admin%7C1328063097%7C983c44c0d712ba8bf7638b2cbb458842

With this info, how can we determine if this is a valid user?

Statistics: Posted by buzzmedia — January 30th, 2012, 8:50 am


]]>