3

Is it possible to store Wicket session data in database (of any kind)? For example in MySQL, Redis, MongoDB? Or to persist data on filesystem between restarts of application server?

I'm mainly interested because when developing, it's a pain after restarting application server to log in again, again and again.

Jakub Kulhan
  • 1,572
  • 2
  • 16
  • 37

1 Answers1

2

about login again and again, my approach is check if wicket is in development mode then pass the login with a test user.

however the JSESSIONID is generated by the servlet container not by the wicket framework.

Under what conditions is a JSESSIONID created?

in apache tomcat you can do something like How to generate custom JSESSIONID, based on some hash of user's data in order to replicate session

Community
  • 1
  • 1
osdamv
  • 3,493
  • 2
  • 21
  • 33
  • So sessions are managed by application server, not application if I understand it correctly? I use Jetty for development, there seems to be a plugin http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22jetty-session-redis%22 I'll investigate if it is usable. Thank you. – Jakub Kulhan Jul 13 '13 at 23:15