Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Using sessions in servlets

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 7254
1395
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic