Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Logging with form-based authentication  RSS feed

 
Alex Turbado
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I'm using the form-based authentication method with Glassfish, and it works fine, but I have a problem: I need to log these actions:

- User login and logout
- Authentication success and failure
- Forged session ids

but, given that Glassfish controls all the authentication process, I'm unable to log them. The server log only logs the "Authentication failure" one...is there any way for logging the others?

Thank you in advance!!
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use filters that intercept each request where you can log the required info.
 
Syed Naved Ali
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alex Turbado wrote:
I need to log these actions:

- User login and logout
- Authentication success and failure
- Forged session ids


Use Session Listener to perform activities related to user session.
check SessionListener to learn more.

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!