title: How to keep a .NET Socket object connection open after postback?
body: <p>I am working on an ASP.NET site where it is required that a single Socket be created and kept connected across all pages for the current session. I have created and stored the socket as a session object and it remains connected after a page redirect, but the connection is closed whenever a postback occurs (such as a button click). Is there any way to keep the socket connection open even after a postback, as the requirement is that a single connection be used for the entire session and reconnecting the socket is not an option. </p>