• Post Reply Bookmark Topic Watch Topic
  • New Topic

session timeout in jsp  RSS feed

 
aarti patil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using
HttpSession session1=request.getSession(true);
session1.setAttribute("log","true");
session1.setMaxInactiveInterval(1);


if(request.getSession(false)==null)
{
out.println("time out");


}

this code is not running,and user is not logging out.
please help,regarding to this topic
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this code is not running

What does this mean? Where does this code exist? Is the method that contains it being called? That code snippet doesn't provide enough detail to tell what's going on.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!