• 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

how to use login name in other pages?(without cookies)

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can the login information in other pages? for example, the visitor inputs his username and password in the index.html. The name and password are checked in the login.jsp. If passed the checking, it will be directed to a welcome.jsp. What should I do now?
 
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well, without using cookies explictly (it does use cookies but not by us) you can set attributes to the session object and check it in the other jsp or servlet.
for example:

assuming username is a String.
in the other servlet or jsp you can retrieve this attribute and check if it is equal to the username.
thats it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic