tonylmiller
Programmer
I'm just wondering what is the best way to pass info between web pages (several of them) and classes. In a Windows app, I would use a "GlobalVariables" class with public properties, but I don't believe that will work on a webserver.
I need to set a UserID, for example, and it needs to be available to all web pages and also my data layer classes.
Should I use cookies or session variables to share the info between web pages and then pass the UserID back to my data layer within my method parameters? Or is there a better way? Whichever solution is recommended, please provide a link to more information if possible.
Thanks in advance!
Tony
I need to set a UserID, for example, and it needs to be available to all web pages and also my data layer classes.
Should I use cookies or session variables to share the info between web pages and then pass the UserID back to my data layer within my method parameters? Or is there a better way? Whichever solution is recommended, please provide a link to more information if possible.
Thanks in advance!
Tony