Frank van Lankvelt wrote:
When B is serialized, so is A, and serialization makes sure the instances to your object are kept shared....Assuming B has a reference to Page A, wont A be Serialized with B, when you go to C, and both still share the same serialized object?how can this be? Aren't different pages written to different streams and thereby incapable of sharing objects?
Yes, I believe you are correct.
But when A is serialized alone (and if A does not have a reference to B), then when A is deserialized you'll have a copy of the instance you gave to B and the reference is no longer shared.So the best thing is that you shouldnt depend on shared variablen.Ok so there are a lot of gotchas :)Yep!ok, I'll go ahead with storing the object in the session directly (as meta-data) and use models in the pages to access this object.
May I ask what your use case is? Regards, Sebastiaan
cheers, FrankMaurice --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature
