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

justadropofwater’s picture

What 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.

galis007’s picture

i 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

kylebrowning’s picture

Status: Active » Closed (fixed)