It's often convenient to avoid sending the session argument directly and just let the browser do it with a cookie. This patch will set the sessid parameter to the current session ID, if it is not provided in the arguments and a valid session exists.
| Comment | File | Size | Author |
|---|---|---|---|
| services_sessid_cookie.patch | 651 bytes | scottgifford |
Comments
Comment #1
marcingy commentedWas out of town at drupalcamp Alberta I'll review sometime this week.
Thanks for your continued flow of patches :)
Comment #2
marcingy commentedApplied to d5 and 6-x-2-dev. Sorry for the delay but work and life got in the way!!!
Comment #3
scottgifford commentedThanks!
Comment #4
marcingy commentedNeed to rework for d6 as logically it was in the wrong place as authenication is now plugable.
Comment #5
Hugo Wetterberg commentedThis one is tricky as services doesn't make special allowances for key-auth when checking for missing arguments. If the sessid is required, then that's more or less it in my opinion, it should be provided by the caller. If you prefer to use cookies, well, then the sessid param should probably be disabled in the key auth configuration.
/Hugo