阅读背景:

如何使用AngularJS客户端在Loopback应用程序中创建会话?

来源:互联网 

Here is my problem :

这是我的问题:

I'm creating a web app with loopback (great framework :) ) with an AngularJS client, everything works well but impossible to reload the page without being disconnected. This behaviour is normal, however I would like to persist the session with a "Remember me" checkbox and just avoid to be disconnect on page reload. The access token is stored in localStorage, I think I have to create a cookie on myself but the main point, how do I avoid disconnection ? And redirection to forbidden page. Then should I do this on server-side or client-side both ? I'm lost actually...I'm creating a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: