We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在webx.xml中配置了cookie-store
<id> <cookie path="/" maxAge="0" httpOnly="true" /> </id> <stores> <session-stores:cookie-store id="temporaryCookie"> <cookie name="tmp" /> </session-stores:cookie-store> </stores> <store-mappings> <match name="*" store="temporaryCookie" /> </store-mappings>
如何在程序中对maxAge进行更改,使不同的用户maxAge不同 我尝试用cookie修改
for(Cookie cookie : request.getCookies()){ cookie.setMaxAge(60*60*24*7); response.addCookie(cookie); }
但是这样csrftoken貌似也被cookie了? 导致重新打开浏览器时csrftoken验证不通过,还有如何理解
webx主张把一切对cookie的读写,都转换成对session的读写
是说将cookie读写都通过session来读写,还是说将cookie都放入session中? 感谢各位不吝赐教!!
The text was updated successfully, but these errors were encountered:
webx主张通过session来存储临时信息,cookie只是session的一种实现方式。 webx默认的配置,如你上图所示,默认会把所有session存放到cookie名为tmp的cookie,你可以在那里设置maxAge。
Sorry, something went wrong.
No branches or pull requests
在webx.xml中配置了cookie-store
如何在程序中对maxAge进行更改,使不同的用户maxAge不同
我尝试用cookie修改
但是这样csrftoken貌似也被cookie了? 导致重新打开浏览器时csrftoken验证不通过,还有如何理解
是说将cookie读写都通过session来读写,还是说将cookie都放入session中?
感谢各位不吝赐教!!
The text was updated successfully, but these errors were encountered: