SugarCRM/SuiteCRM Api Login redirect
<p>I am using the v4_1 Rest API from Sugar/Suite CRM to login:</p>

<p><a href="http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Web_Services/Examples/REST/PHP/Logging_In/" rel="nofollow noreferrer">http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.5/Application_Framework/Web_Services/Examples/REST/PHP/Logging_In/</a></p>

<p>I have taken this php code and created a loginAuth.php script and put the credentials for a user in it...  It works and returns me a session id...</p>

<p>My problem now is I don't know what to do with the session id I get back...  I try to redirect the main page, but it takes me back to the login screen...</p>

<p>Workflow:</p>

<ol>
<li>call loginAuth.php (validate/get sessionid)</li>
<li>if valid session, redirect to index.php?module=Home&amp;action=index</li>
</ol>

<p>But it's just taking me to the main page...</p>

<p>Any ideas on how I can bypass the login form when using the API?</p>

<p>Thanks,</p>

<p>Adam</p>