$ 0 0 This will work if the session cookie is on the same domain. You don't want to pass the PHP Session ID around.