Logging session contents

View: New views
2 Messages — Rating Filter:   Alert me  

Logging session contents

by CarlosJP :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi all,
how can I debug what is being stored into the session?
Sometimes there are classes that are Serializable by other reasons than
wicket session keeping and are silently serialized into the session.
For non-serializable classes I get an exception when logging is at DEBUG
level, but I would like to know about every instance that is being stored
into the session for a given page.
Thank you in advace.
Cheers,
Carlos
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Wicket-user mailing list
Wicket-user@...
https://lists.sourceforge.net/lists/listinfo/wicket-user

Re: Logging session contents

by Eelco Hillenius :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

> Hi all,
> how can I debug what is being stored into the session?
> Sometimes there are classes that are Serializable by other reasons than
> wicket session keeping and are silently serialized into the session.
> For non-serializable classes I get an exception when logging is at DEBUG
> level, but I would like to know about every instance that is being stored
> into the session for a given page.
> Thank you in advace.
> Cheers,
> Carlos

If you're using Wicket 1.3, start by looking at a custom session store
implementation (ISessionStore).

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
IMPORTANT NOTICE:

This mailing list is shutting down. Please subscribe to the Apache Wicket user list. Send a message to: "users-subscribe at wicket.apache.org" and follow the instructions.
_______________________________________________
Wicket-user mailing list
Wicket-user@...
https://lists.sourceforge.net/lists/listinfo/wicket-user