http://bderzhavets.blogspot.com/2006/03/embedding-customs-queries-into-session.html