Servlet HttpSession cookies disabled [duplicate]
问题 This question already has answers here : Best option for Session management in Java (6 answers) Closed 3 years ago . In a web app, when user logs in, a HttpSession is created using HttpSession s = request.getSession(true); This creates a cookie with jsessionid on the browser. But if cookies are disabled on browser, How can i proceed with login? 回答1: If Cookies are disabled. You should be using URL Rewriting mechanism for Session tracking. Code Example: http://www.javadocexamples.com/javax