Use and management of session under Tomcat

xiaoxiao2021-03-06  74

The HttpSession interface provided by servlet

GetId () returned to session IDINVALIDATE () SetAttribute (String name) GetAttributeNames () isnew () setMaxinactiveInterval () getMaxinactiveInterval ()

Rewrite URL mode tracking session

Public java.lang.string encodeurl (java.lang.string URL)

>>

Sension's persistence

The servlet container creates a session object and saves it to a file system or database.

Configuring FileStore debug = 0; saveOnstart = "true"; maxActiveSessions = "- 1"; minIdleSwap = "- 1"; maxIdleSwap = "- 1"; maxIdleBackup = "- 1"; 转载请注明原文地址:https://www.9cbs.com/read-109001.html


New Post(0)