Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JAVA Change JSESSIONID cookie

I'm using JAVA and Wicket on JBOSS 5. I need to change JSESSIONID cookie value to get the same Session used in another client (setting the other client's JSESSIONID). I need that to authenticate the other client that has no keyboard). What is the best way?

like image 431
DeejonZ Avatar asked Jul 25 '26 01:07

DeejonZ


1 Answers

I recommend you to implement some kind of auto-login feature in your application. There are a number of possibilities for that (Client Certificate, or Single Sign-On with some other AA provider, even domain cookie).

If you are trying to log in with another application, your options are HTTP Basic Authentication, Client Certificate, or simply posting the username/password to your login page (this one is not the safest, though).

I prefer the Client Certificate, since that is the safest solution.

like image 193
gaborsch Avatar answered Jul 27 '26 16:07

gaborsch