Auth with openEMR API

astyanomnos42 wrote on Tuesday, March 18, 2014:

Hello,

I use the OpenEMR API and I try to login into OpenEMR.
When I try to do :

authNewSession(‘admin’,‘pass’,‘Default’);

I receive the error message : ‘Site ID is missing from session data!’

What I do wrong ?Is there a way to login into OpenEMR with the API ?

astyanomnos42 wrote on Wednesday, March 19, 2014:

ok authNewSession don’t exist even if it’s in the Open EMR API docs.
There is an other way to connecting a script to Open EMR ?

fsgl wrote on Wednesday, March 19, 2014:

Try enabling cookies.