Jakub Kulhan
Jakub Kulhan

Reputation: 1562

Wicket session stored in database

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.

Upvotes: 3

Views: 895

Answers (2)

Kees van Dieren
Kees van Dieren

Reputation: 1290

There are several options available in wicketstuff including Cassandra, Hazelcast, Ignite and Redis.

Upvotes: 0

osdamv
osdamv

Reputation: 3583

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

Upvotes: 2

Related Questions