Plumtree Portal UI  
 

PTPersonalSettingsHelper.SetAndCachePersonalSetting Method (String, Object, IPTSession, ISessionManager, IApplication, XPResourceManager)

This method stores a personal setting on the HTTP Session and in the DB. It also handles setting the runtime settings in the server for language and locale if you try to set the locale. You should always set the Locale, which will automatically set the language, rather than just setting the language, which will allow the language and locale to get out of sync. Only call this version of this function if you don't have an AActivitySpace.

public static void SetAndCachePersonalSetting(
   string sSettingName,
   object oSettingVal,
   IPTSession ptSession,
   ISessionManager sessionManager,
   IApplication app,
   XPResourceManager rm
);

Parameters

sSettingName
String name of personal setting
oSettingVal
Object value of personal setting
ptSession
sessionManager
app
rm

See Also

PTPersonalSettingsHelper Class | com.plumtree.portaluiinfrastructure.login Namespace | PTPersonalSettingsHelper.SetAndCachePersonalSetting Overload List