Originally posted by Pradip Bhat:
Why not make session1 pass the preferredColor to some inermediate class (which could be a singelton ) and the make the second session session2 to read from the intermediate class.
but he said 'Note: ServletContext should not be used for intermediate storage because I donot want the value to be available to others.'
So anyone would be able to read that intermediate class, or physical file, or database entry, unless you implement some sort of security