Closed (fixed)
Project:
Services
Version:
6.x-3.0-rc4
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2011 at 14:27 UTC
Updated:
12 Oct 2012 at 17:03 UTC
How is it possible to use the built in session authentication in services to authenticate a user in my javascript application
I am able to login and save nodes but the nodes are saved as annonymous user. I have researched and seen that i have to use xhr.setrequestheader() in all subsequent ajax calls to send the session name and session id but when this is tried it does not send so therefore am i missing something. Thank you in advance for any help that may be offered
Comments
Comment #1
justadropofwater commentedWhat are you using to make the calls? I've had success using html5 sessionStorage to store the 'cookie' and then passing it to the request header afterwords afterwords.
Comment #2
galis007 commentedi have been using jquery .cookie to store the data. i was able to find a work around but i will try your suggestion. PS was your sugestion done in a browaer or was it an application such an iphone or mobile app
Comment #3
kylebrowning commented