Help:Accessing Userdefined Objects Globally
Reply
![]() |
|
From:
![]() SriSrivatsav
|
Hi Bhaskar,
What I understand from your problem is that you might be using 'Singleton' Design pattern, which should not be used in the current scenario. If it is possible, please remove static objects. Can you create a structure and fill that structure with all the required info and store that structure into the session. This will have all your data in more organised way. Once the user logs in, fill this structure with user specific data and use that session variable.
Bye,
Kalyan.
From: "Prince_Bhaskar" <[EMAIL PROTECTED]> Reply-To: "dotNET User Group Hyd" <[email protected]> To: "dotNET User Group Hyd" <[email protected]> Subject: Help:Accessing Userdefined Objects Globally Date: Thu, 23 Feb 2006 21:31:30 -0800
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
ThmFgColumnHeader, A.FrameLink, A.HeaderLink, A.FooterLink, A.LgtCmd, A.MSNLink
{color:#FFFFFF;}
ThmFgTitleLightBk
{color:#FF6600;}
ThmFgSmallLight
{color:#ff0000;}
ThmFgNavLink, A.NavLink, A.ChildLink:hover
{color:#666699;}
ThmFgInactiveText, A.SystemLink
{color:#666666;}
ThmFgFrameTitle
{color:#FFFFCC;}
ThmFgMiscText, A.Cat, A.SubCat
{color:#336699;}
ThmFgCommand, A.Command, A.LargeCommand, A.MsgLink
{color:#003366;}
ThmFgHeader
{color:#333333;}
ThmFgDivider
{color:#CCCCCC;}
ThmBgStandard
{background-color:#FFFFFF;}
ThmBgUnknown1
{background-color:#FF6600;}
ThmBgFraming
{background-color:#666699;}
ThmBgUnknown2
{background-color:#666666;}
ThmBgHighlightDark
{background-color:#FFFFCC;}
ThmBgHighlightLight, #idToolbar, #tbContents
{background-color:#FFFFE8;}
ThmBgTitleDarkBk
{background-color:#F1F1F1;}
ThmBgAlternate
{background-color:#ECF1F6;}
ThmBgUnknown3
{background-color:#CCCCFF;}
ThmBgDivider
{background-color:#CCCCCC;}
ThmBgHeader
{background-color:#9999CC;}
ThmBgLinks
{background-color:#8696C9;}
ThmBgSharkBar
{background-color:#8696C9;}
ThmBgGlobalNick
{background-color:#9394A9;}
calfgndcolor
{color:#E00505;}
calbgndcolor
{color:#E00505;}
</STYLE>
Help:Accessing Userdefined Objects Globally
Reply
|
|
| From: Prince_Bhaskar |
Good Afternoon ,
I have got a serious problem in my project which i figured it just yesterday.
I will tell you the scenario I have created some Static Objects which contain User Preferences and some Contact Details actually i did this to prevent the use of Sesion variables i thought these are alternatives.
The Reason i wanted to remove Session Varibles in the project is now the total amount of Session variables are amounting to 80 in the project which would definitely affect the application. There are certain things like User Name,user Company Name,user Color preferences which we use in many modules.What were doing is we used to query them once again whenever we need them. My intension was to get all the user info and store them in one object and use them in the application whereever we need this User information,thats the reason i went for these static objects.My goal was to reduce the database activity which was happening very heavily.
I thought these static objects are restricted to each User Session but i found that they are acting as Application level objects. Please guide me at this point.
This UserInformation and Security Information is used through out the application so i want to build these objects when the User logs in.We can store these objects built during user login into Sessions and use them where ever we need them its one solution. Could you please tell me what best i could do with out storing object into Sessions? ></SCRIPT>
Regards, Pavan Vaidyula
| | View other groups in this category.
|
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services. For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's
mailing list. Remove my e-mail address from dotNET User Group Hyd.
|
Tried the new MSN Messenger? ItÂ’s cool! Download now. |
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|