AnsweredAssumed Answered

fetching current user session outside the sugarcrm for portal users.

Question asked by Usman Saeed on Aug 13, 2014
Hi All,

I have a situation where I have to redirect the portal user to my custom php page to fetch/update some data from CRM using restapi.
eg. I have written my script on custom/portal/case/edit_case.php?case_id=123adf-ere.

Every thing is working fine except, if I am not login the url is still working as I have my custom  html.css,php, there but no authentication.

How I can get the current_portal_user session and redirect according.
Or someone can explain the process how sugar is checking for login users (sessions) on load.
Which files from sugar do I need to include for checking the session.

Thank you,

Usman

Outcomes