aspose file tools*
The moose likes Servlets and the fly likes Track the pages user visits and keep them in session. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Track the pages user visits and keep them in session." Watch "Track the pages user visits and keep them in session." New topic
Author

Track the pages user visits and keep them in session.

sravani gogineni
Ranch Hand

Joined: Feb 09, 2011
Posts: 33
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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61237
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sravani gogineni
Ranch Hand

Joined: Feb 09, 2011
Posts: 33
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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61237
    
  66

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.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Track the pages user visits and keep them in session.