In Tomcat Manager on the Page “Sessions Administration”, there is a column Guessed User name. How can i set this column from within my Wicket Session?
Note: I have successfully overridden AuthenticatedWebSession.toString() and this value is shown on the sessin details page.
I have tried to set AuthenticatedWebSession.userName as recommended here.
Please mind that Wicket session is a different beast than actual servlet session. Creating a “userName” property in wicket session will not work.
You need to access the raw HttpServletRequest from wicket to set the value properly: this is how you do it.
Add this code to your WebPages: