You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some trouble staying logged in with jDrupal 7. I'm using phonegap.
I can perform a successful system_connect, and user_login, but I'm getting "Access denied for user anonymous" when I try a node_save afterwards. If I run an Console.log(Drupal) I can see that user.uid is set to 0, before or after user_login.
I'm not sure what I'm doing wrong. Here's a simplified version of my code:
Yes, years later.. but hoping jDrupal is still an active project (but sadly i think it isn't).
I have the same issue. When i do a user_login() the result is the logged in user object; but this isn't being set to Drupal.user and my guess is this has something to do with not getting new CSRF token. I am not seeing any console.log errors though except for CORB warnings which i assume are not too big a deal as the user object for the logged in user is returned successfully.
@BarryAbrams@liquidcms Add a couple more years... and I am experiencing this too w/ cordova + jdrupal 7 + ios.
I'll be investigating how to solve this issue, but wanted to let you know that I don't experience this when building a web application, and do not experience it with cordova + jdrupal 7 + android.
I'm having some trouble staying logged in with jDrupal 7. I'm using phonegap.
I can perform a successful system_connect, and user_login, but I'm getting "Access denied for user anonymous" when I try a node_save afterwards. If I run an Console.log(Drupal) I can see that user.uid is set to 0, before or after user_login.
I'm not sure what I'm doing wrong. Here's a simplified version of my code:
The text was updated successfully, but these errors were encountered: