P
Pross
I've got an ASP.NET application and I need some information on every page
like the user's name as well as a collection listing which sections of the
application the user has access to. I could store the user name in a regular
session variable but the collection varies in size based on the user and
could grow in the future as the application grows. I don't want to keep
going back to the database for this info every time because it's needed on
every page.What I would like to do is have a session level "USER" object
that stores this information in memory but I have not been able to figure
out how to do this. I have been looking on the web and I found this syntax:
<object id="UserInfo" runat="server" class="TestApplication.UserInfoClass"
scope="Session" />
This looks like exactly what I am looking for except I don't know how to add
this to my global.asax file. It does not belong in the codebehind
global.asax.vb file and there is no html view of the global.asax file. I'm
stumped.
Any help would be greatly appreciated.
Paul Ross
Hebco, Inc.
like the user's name as well as a collection listing which sections of the
application the user has access to. I could store the user name in a regular
session variable but the collection varies in size based on the user and
could grow in the future as the application grows. I don't want to keep
going back to the database for this info every time because it's needed on
every page.What I would like to do is have a session level "USER" object
that stores this information in memory but I have not been able to figure
out how to do this. I have been looking on the web and I found this syntax:
<object id="UserInfo" runat="server" class="TestApplication.UserInfoClass"
scope="Session" />
This looks like exactly what I am looking for except I don't know how to add
this to my global.asax file. It does not belong in the codebehind
global.asax.vb file and there is no html view of the global.asax file. I'm
stumped.
Any help would be greatly appreciated.
Paul Ross
Hebco, Inc.