Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using sessions in servlets

 
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: 5184
503
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.
 
Water! People swim in water! Even tiny ads swim in water:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!