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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top