HttpSession
In java servlet,I use Httpsession,but I can't control it's time,for Example,I use:
Long userID = null;
HttpSession session = req.getSession(false);
if (session == null) {
throw new Exception("no session");
} else {
userID = (Long) session.getValue("userID");
if (userID == null) {
throw new Exception("no the user");
}
}
,but sometimes in 10 minutes,session not be used,I hope after 30 minutes,it may not be used,who can help me
Thank you,Thank you,Thank you,Thank you,Thank you,Thank you!!!!!!!