posted 20 years ago
Hi Ranchers
I am storing application preferences in a HttpSession - for example session.setAttribute("width", "20")
I only want these to be stored in memory until the session finishes (through logout, browser closing or session timeout) at which time I then want to write these values out to persistant storage.
My question is, is there a way for me to ensure attributes stored in the session are written to persistant storage prior to the session dissapearing? It needs to be automatic and hidden and account for the possibility of the user not cleanly logging out.
Thanks for any advice.
Nick
ph34r my 133t j4v4 h4><0r1ng sk177z