• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using sessions in servlets  RSS feed

 
jagan raja
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have created a simple application.

It asks for an username password, once given it takes me to the Index Page.

Now I wish to learn & use session in my application.

For a given period of time as specified in web.xml, I should be logged in. Then the session should get invalidated.

I wish to know the usage of session.

How to effectively use sessions in my application?

Thanks in advance.
 
Devaka Cooray
Marshal
Posts: 5325
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jagan raja wrote:Now I wish to learn & use session in my application.

Please have a look at this article/

jagan raja wrote:For a given period of time as specified in web.xml, I should be logged in.

You can specify the session timeout delay in the deployment descriptor using <session-timeout> element.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!