In Drupal 5: My C# application can access my drupal service al. la. Rob's great video. I turn on the session ids for the service, and call the system.connect service to get a sessionID, which I then pass around as the extra parameter in each of my service calls. I authenticate my user, but cannot persist the session state...
I added authentication to my client, and used the user.login service successfully. This returns a user structure. I'd optimistically hoped that the fact that I was passing a session id around and had authenticated would mean that I had a session with an authenticated user that would persist across calls to my services...
In fact, the service runs as an anonymous user every time. I've hacked around trying various things (ensuring my client has a cookie-container in its html, putting the session id into the cookie, etc. and have not yet managed to preserve a session between the initial call to system.connect and the subsequent calls to my methods.
a) When I authenticate successfully, (on the server side) do I have to store the user in the $_SESSION?
b) When another service method is called, what php magic gets back my session and sets my user up correctly?
c) Can I turn off the sessid feature on services, and somehow just use a cookie? (I'm naive enough not to know if it is the client that creates the cookie, or the server that creates the cookie and somehow pushes it back to the client!)
Any suggestions about where to look (I feel like a need quite small slow steps at this stage!) will be most appreciated!