1

Angular.js を使用して、ブラウザーの更新/再起動後に Web サーバー (レール) でセッションを再利用するにはどうすればよいですか? RestAngular を使用していますが、セッションを保存する方法がわかりません。angular.js アプリは、Rails アプリに View としてあり (もちろんアセットも一緒に)、csrf 保護を修正しました。

毎回ログインする必要のない、通常の Web ページのように機能するようにしたいと考えています。

4

1 に答える 1

1

I believe you need to reuse the session objects which is already available in the webserver.

What I would suggest is that, You could use the browser cookie to retrieve the session objects or else you could store a key in the browser DB which you can send to the server via RestAngular and check whether the session is already available. If the session is already there then you can send the relevant data through RestAngular to the browser.

Hope this might help.

于 2013-11-04T04:07:28.417 に答える