This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to show the user session information in the log file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to show the user session information in the log file?" Watch "How to show the user session information in the log file?" New topic
Author

How to show the user session information in the log file?

Koti Samadhi
Greenhorn

Joined: Aug 26, 2009
Posts: 29
Hi All,

How to show the user session information in the log file?

Anyone can please provide the solution for display the user session information in the log file.

Thanks & Regards
Koti
Chinna Eranna
Ranch Hand

Joined: Dec 08, 2009
Posts: 174

What do you mean by user session ?


- Chinna
Koti Samadhi
Greenhorn

Joined: Aug 26, 2009
Posts: 29
User Session means- System logged user session information.

Chinna Eranna
Ranch Hand

Joined: Dec 08, 2009
Posts: 174

If you are talking about HttpSession, you can get lots of information and print in the log.

Still, I think.. you question is not clear.. on what you want to log.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You can log anything you want.

It also depends on which logging system you're using, for example Log4J has "profiles" (I think that's what it's called) that can show session info more automatically, but I don't recall how it works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to show the user session information in the log file?
 
Similar Threads
logging into my own txt file
JSession ID issue
Session Invalidation and Timeout !
include files
Tomcat Inactive Session Management