java session management

后端 未结 3 1514
-上瘾入骨i
-上瘾入骨i 2020-12-18 11:39

I am working on a small webapp for fun, using just Java Servlets at the moment. I have two pages, test1 and test2. At the moment I am creating a new session in test1 like th

3条回答
  •  [愿得一人]
    2020-12-18 12:20

    A session is just a basket that starts out empty. The concept of whether a user is authenticated or not is separate from whether or not the user has a session.

    Java EE and the servlet specifications handle all the login stuff for you, redirecting to login pages and so on. Read up on the built-in capabilities of Java EE. Maybe start here.

提交回复
热议问题