Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Vert.x Web 处理程序是否可以修复会话固定问题(即在用户通过身份验证后更改会话 ID),还是我必须实现自己的会话处理?在登录处理期间我需要一个会话,但我看不到如何使用身份验证令牌创建一个新会话(或更改会话 ID)。
当发生从未经身份验证到经过身份验证的升级时,会重新生成 Vertx 会话 ID。
您可以使用以下方法请求一个新的 Id atbany time:Session.regenerateId()
Session.regenerateId()