K
kito
Hi,
I wanted to get some advices from you guys.
I have a little web-shop in ASP.NET for a project. I have several VB
classes, where the most important ones are the "DBmanager" and the
"DataManager". The DBManager creates the database connection and has
some useful functions. The DataManager has an Object of the DBManager
and uses that functions to get the Data as DataView, DataReader,....
Now to avoid that every time a user accesses the page, there is always
created a new Object of the DataManager and therefore also of the
DBManager which means also a new connection to the database, I wanted
to store the objects in the Session or Application object.
It is clear to me, that storing in the Session variable would meen that
it is specific for each user, meaning again that so for each
user-session those objects would be created. On the other hand, the
Application object would sound better to me, since in that case only at
each Application - start the objects would be created.
Can you give me advices. They can also be of completely different
nature.
thanks
Juri
I wanted to get some advices from you guys.
I have a little web-shop in ASP.NET for a project. I have several VB
classes, where the most important ones are the "DBmanager" and the
"DataManager". The DBManager creates the database connection and has
some useful functions. The DataManager has an Object of the DBManager
and uses that functions to get the Data as DataView, DataReader,....
Now to avoid that every time a user accesses the page, there is always
created a new Object of the DataManager and therefore also of the
DBManager which means also a new connection to the database, I wanted
to store the objects in the Session or Application object.
It is clear to me, that storing in the Session variable would meen that
it is specific for each user, meaning again that so for each
user-session those objects would be created. On the other hand, the
Application object would sound better to me, since in that case only at
each Application - start the objects would be created.
Can you give me advices. They can also be of completely different
nature.
thanks
Juri