AnsweredAssumed Answered

What is the best way to get the currently logged in user for an external PHP page on the same server?

Question asked by Jacob Steele on Jun 5, 2014
Latest reply on Jun 10, 2014 by antoniorich antoniorich
I am creating a separate php page that will encrypt data using a public key and be downloadable by our separate application.

My Question: This separate page is located at /sugarcrm/external/data.php 

I was wondering what the best method to get the current user's email address would be? I need to include the email1 in the data.

So far the $_SESSION seems none existant, the $GLOBALS are non existant, and the cookie with the session id PHPSESSID seems to be hit and miss (even though the cookie doesn't contain the email address).

I was wondering what would be the recommended method to expose the currently logged in user's email to my current external page.

(This page will be accessed directly from the Currently Logged in User via a javascript rest call)

I am using Sugar 7