471,310 Members | 1,098 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Global objects

Hi.

I am developing an ASP.NET application. I have several classes that I
developed that store user information and certain things that they do while
working with the application.

All those classes need to be available from the time user signs in to the
application and until user logs out. Also, they need to be local to the
user who is logged in to the current session. How should I create those
object instances so they are local to the user and seen from any page within
the application? Thanks for the help.
Jul 21 '05 #1
2 1167
Simply use HttpSessionState like this:

Session["key"] = value;

See more on MSDN:
http://msdn.microsoft.com/library/en...ssionstate.asp

Alex Korchemniy

"David" wrote:
Hi.

I am developing an ASP.NET application. I have several classes that I
developed that store user information and certain things that they do while
working with the application.

All those classes need to be available from the time user signs in to the
application and until user logs out. Also, they need to be local to the
user who is logged in to the current session. How should I create those
object instances so they are local to the user and seen from any page within
the application? Thanks for the help.

Jul 21 '05 #2
Thanks. I am doing it with some variables but the object I need to be
available for the duration of the user session are big and it affects
performance so I do not want to use session variables. I was wondering if
there is another way to do so.

"Alex Korchemniy" wrote:
Simply use HttpSessionState like this:

Session["key"] = value;

See more on MSDN:
http://msdn.microsoft.com/library/en...ssionstate.asp

Alex Korchemniy

"David" wrote:
Hi.

I am developing an ASP.NET application. I have several classes that I
developed that store user information and certain things that they do while
working with the application.

All those classes need to be available from the time user signs in to the
application and until user logs out. Also, they need to be local to the
user who is logged in to the current session. How should I create those
object instances so they are local to the user and seen from any page within
the application? Thanks for the help.

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Gianguz | last post: by
2 posts views Thread by Thomas Matthews | last post: by
8 posts views Thread by john townsley | last post: by
10 posts views Thread by David P. Donahue | last post: by
15 posts views Thread by randyr | last post: by
8 posts views Thread by Vishwanathan Raman | last post: by
23 posts views Thread by David Colliver | last post: by
112 posts views Thread by istillshine | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.