Checks that a session already exists. The function returns TRUE if the session id already exists.
This function can and should be used to check that a session is valid or not based on its existence. If the session is not existent the program can still call the function SetSessionId to set the session and the new session is autmatically created.
However calling this function is a good chanhe to check if any session initialization is needed, for example password check.