session - Java HttpSession timeout not changing from no timeout to 10 minutes timeout doesnt work -


using java code , not in web.xml, need ensure session created @ particular page no time out. once user goes past page, same session needs have timeout of 10 minutes.

//i using set no time limit: session.setmaxinactiveinterval(-1);  //and using same code different value set 10 minute limit: session.setmaxinactiveinterval(ten_minutes); 

however, session never times out.. makes me think once sessions inactive interval set no limit, cannot undone.

i need working described.

thanks...


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -