I've been working on getting an external system to use SugarCRM's SOAP API for authentication. All seems well until I need to check to make sure the user is logged in (or at least is a valid user).

Basically, I'm logging in and getting the session ID. This works fine for working within Sugar, but when I need to use it from the outside, it seems that requerying Sugar's SOAP API by (using a seamless_login()) and passing the session ID always returns a 0. So I can't use that to determine if the current login session is valid.

Is there some way I can use a session ID and check to see if the login is valid or not? Thanks!

I'm using:

FreeBSD 6.2
Sugar 4.5.1e
Apache 2.2.4
PHP 5.2.1
MySQL 5.0.37

Though, I don't think those are going to be necessary to helping me with my question. Thanks!