I want to create a session using a client side jQuery API in Java.
Is it possible to create such a session in jQuery in Java EE, i.e. via JSP and Servlet?
You can create cookie in jQuery cookie plugin(can do in pure JavaScript as well). you can read the cookie using the server side. then you can create the session in the server side.
I'm guessing that you don't just want to create the session, you want to store some values in it as well. If this is the case, your best bet is to make an AJAX call to a Servlet that will take the values from the request and put them in the session. jQuery can manipulate cookies, but can't manipulate session data directly.