You are likely to fail at serializing the HttpSession object itself, because the container makes no guarantees that the implementation class will be Serializable. What you might want to consider is just saving and restoring the session attributes themselves.I need to serialize the session and save it to a blob in MySql (i use Hibernate).
I have tried, for example; ... ByteArrayOutputSream baos = new ByteArrayOutputstream(); ObjectOutputStream oos = new ObjectOutputStream(boas); oos.writeObject(session); //<-- it fails here, nothing in the logs byte[] sessionAsBytes = baos.toByteArray(); ...
I need this to give the user the option to restore a previous session (where they where before they last logged out, with all the session variables required to restore to that point).
Thanks, Johan.
Craig
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]