Session Variables VS. Writing classes for access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing a systemusing asp and c# and need to pass values from forms on one page to be accessed on another page, Session variables are easy but are they robust enough to be usefull or is it better to write classes with accessors
 
You are always safe to write a class that gets your variables. The
implementation of your properties could be to store in session - but if you
ever decide to change it, you will only have to change yoru class
implementation, not the 500 places in your code that use those variables.

Lane said:
I am developing a systemusing asp and c# and need to pass values from
forms on one page to be accessed on another page, Session variables are easy
but are they robust enough to be usefull or is it better to write classes
with accessors
 
Back
Top