Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

About HttpSession

user4074040Jul 11 2019 — edited Jul 11 2019

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!

Comments
Post Details
Added on Jul 11 2019
0 comments
139 views