ok I will try to setup persistent session with mysql.
I do not need to save them in mysql, because the web app that i'm developing will be installed on site (on the clients "server") so the server can be any pc, i have no control over that so in case of a power failure the server restarts itself and all the sessions and attributes will be gone. This why I wanted to enable persistent sessions on disk.
I don't understand why only the maxInactiveInterval isn't saved or restored correctly ... all other session properties are correct (creation time, last acces, session id). I tried searching on google and the only thing that i can come up is that -1393754107 is a "generic" error value (if an error was encountered when getting the value the value will be set to this).
But since my application uses mysql I will try to get jetty to save session data in db.