开发者

session time-out jax-rs

开发者 https://www.devze.com 2023-02-19 18:55 出处:网络
Do开发者_运维技巧es it make sense do define session-timeout with restful web services like jax-rs? For what I know the rest is stateless (or should be stateless) so what the point of storing a session

Do开发者_运维技巧es it make sense do define session-timeout with restful web services like jax-rs? For what I know the rest is stateless (or should be stateless) so what the point of storing a session? If I don't define the session-timeout in the configuration file web.xml for how long session will be stored in servlet container?


Basically REST should be stateless and you should not create a session for the rest calls.

If you don't specify the session timeout, it uses the default one specified by the container. In tomcat the default is 30 minutes.

0

精彩评论

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