user.login

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
ziobudda's picture

User not logged in, but user.login works

Hi all, I have a problem that I can not understand. I'm using services 3.x with a D6 and I have this code:

$.post("http://mydomain.ext/pr1/system/connect", function(data) {

$.post("http://mydomain.ext/pr1/user/login", data.session_name+"="+sessid+"&username=foo&password=bar", function(data2) {
//alert(data2.user.uid);
sessid = data2.sessid;
session_name = data2.session_name;
$.cookie('PHPSESSIONID',data2.session_name);

Read more
Subscribe with RSS Syndicate content