开发者

How to securely implement "remember me in this computer" using stripes framework?

I want to implement "remember me on this computer" using stripes framework. I h开发者_运维知识库ave read this question; but stripes does not directly use servlets. So I am confused. Is there any way to securely implement "remember me" option using stripes ?


Other question, that you mentioned, has a good suggestion. And it has nothing to do with specific framework like Stripes. For as long as you run web application, you can always set up Filter for your requests. In filter you can alter request to indicate that it is authenticated or reject it.

This article talks about some relevant state management issues in Stripes. It, particularly, mentions access to cookies.


I do not know what you mean by "securely". But if you want to set a cookie you can use the standard provided in javax.servlet.http.HttpServletResponse. You can retrieve it from the ActionBeanContext: http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/ActionBeanContext.html#getResponse()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜