No problem, glad to help. As to your concern for the DB, the best way to improve performance there is to use a caching solution like Ehcache + Terracotta or any of the similar commercial projects (if you're using Hibernate, you can use it as a 2nd-level cache and it is not very invasive). This will reduce the load significantly on your database and give you the best performance.
Cheers, Les On Tue, Mar 30, 2010 at 4:15 AM, Juan Solo <[email protected]> wrote: > > > Thank you very much for the answer, it helps me a lot. I thought that to ask > the DB for the user every request would be unappropiate but I see it much > better than store it in a cookie. I didn't know that my user object was > being serialized and store in the cookie and now a I can see the source of > my problem. I had decided to do it the way you explain, but now I know why > this is a better approach. > > Thank you for improving my code too, I didn't realize I can call the Realm > getName(). > > > Regards, > > Juan > -- > View this message in context: > http://n2.nabble.com/Remember-me-problems-with-object-in-SimpleAccount-tp4817122p4823850.html > Sent from the Shiro User mailing list archive at Nabble.com. >
