• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session validation code

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am using Tomcat 4.1.29.I want to incorporate session validation code in my JSP Pages.Can any one give me sample session validation code .I dont want to use servlets for validating session.

TIA

Regards
Vasudevan Gopalan
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vasudevan -
what do you mean by "session validation" is it something like checking whether the sessionn already exists or not?
if so, then:


public boolean isNew()
Returns true if the client does not yet know about the session or if the client
chooses not to join the session. For example, if the server used only cookiebased
sessions, and the client had disabled the use of cookies, then a session
would be new on each request.
Returns: true if the server has created a session, but the client has not yet
joined
Throws:
IllegalStateException - if this method is called on an already invalidated
session


is that what you're after?
reply
    Bookmark Topic Watch Topic
  • New Topic