window.open() causes session context to be lost
Posted on 2004-04-08
I am trying to open an ASPX page using window.open() from codebehind. The new page accesses some large session variables (CrystalReport stuff like EnterpriseSession and InfoStore objects) that were populated in another page. If I don't call this page in a new window, and do a Server.Transfer() or Response.Redirect(), I am able to retain these variables and use them. But opening the page in a new window causes these variables to be lost!
Note that this happens only to large objects and not the small ones one would usually use (like strings).
Is there any workaround to this? I cannot add the variables to ViewState since the objects don't seem to be serializable.