• 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

Track the pages user visits and keep them in session.

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I need to track the pages user visits and keep them in session.
Here is the detail of my problem:

The user logins(say Session1) and open multiple tabs/windows(say Page1,Page2,Page3) in that session.
When the user logs out Page1 and session ends here. Cookies are deleted at this point.User relogin in Page 1 and then visits the Page2 or Page3 it should be taken to login page. How do I implement this?

Thanks
Sravani
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not quite sure what you are trying to achieve given your explanation, but it does sound like an investigation of servlet filters will help you out.
 
sravani gogineni
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have posted this so that someone who is handling this already in there application could help me.
If you know any solution please provide it. Thanks!
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then you may not be in the right place. JavaRanch is a learning site. If you are here to find someone to do your work for you rather than learning how to do it yourself you will be disappointed.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want information to endure past the end of a session, that sounds like a database in called for. That kind of tracking is not something built in to the servlet API.

Bill
 
reply
    Bookmark Topic Watch Topic
  • New Topic