Search code examples
asp.netclasssecurityobjectmessage-passing

class object passing across page of an asp.net page


I have a class. I want the object of the class to be initialized once and be available to the next page to be browsed. Is there any other way apart from Session and paramter passing thru URL that is fast, safe and accurate


Solution

  • The nature of the HTTP is to be stateless so you have to care about the state of your objects. You can either use the Session or the Cache keeping in mind their differences