signalpoint / angular-drupal

An Angular JS module for Drupal.
GNU General Public License v2.0
116 stars 33 forks source link

Does this keeps user info safe on page refresh? #1

Closed murli800 closed 9 years ago

murli800 commented 9 years ago

Hi Does this keeps user info safe on page refresh?

signalpoint commented 9 years ago

@murli800 Please clarify, I don't understand.

murli800 commented 9 years ago

@signalpoint . I tried to develop angular app and for storing data i used Drupal. The challenge i came across is to keep user logged in on browser on page refresh. If i refresh the browser data stored in routeScope get deleted. So i want to know does this module handle it own its own or i need cookie to restore user info?

signalpoint commented 9 years ago

@murli800 Since Drupal uses cookie based authentication, the user should remain logged in as long as the session is valid. The trick is you need to call drupal.connect() in your app, which will then report to you which user account is currently logged in.

murli800 commented 9 years ago

@signalpoint Thanks for your quick suggestion. I will use your this module and rewrite my code as your code is much cleaner.