Forum Stats

  • 3,838,748 Users
  • 2,262,397 Discussions
  • 7,900,749 Comments

Discussions

About HttpSession

user4074040
user4074040 Member Posts: 2 Blue Ribbon
edited Jul 11, 2019 5:22AM in Java Servlet

Hello,

        I have a requiredment that if the web page is inactive for 30minutes, the session will destroyed. However, I have another requirement to automatically polling  temperature data by javascript Timer to server, and the server side should check session for an authentication before response the temperature data. the two requirements looks no problem with each other, but when the polling request was sent, the session would be atived and the session would never timeout!

        So, If I want to know the session info. I should access it, but when I access it , the session has changed!

       Why is session was designed as same as quantum !

       What a genius design! and what a  stupid design!