Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > What Data Does SessionParametersSetting Parameter Contain?

Forum

Search UsersRules
What Data Does SessionParametersSetting Parameter Contain?
#1
Active user
Points:: 1
Joined:: Jul 20, 2011

Please help to understand the SessionParametersSetting(SessionParametersSetting) procedure which is placed in the Session Module. How is the SessionParametersSetting parameter filled? I have 5 Session Parameters (CurrentUser, CurrentUserOrganizations, CurrentUserDepartments and so on), but in the SessionParametersSetting array there is only CurrentUser parameter… Why only it and no others?

Profile
#2
Guest
Points::
Joined::

This parameter was added to implement a Lazy Load of Session Parameters; it works in the following way: the SessionParametersSetting procedure is called every time the access to the uninitialized Session Parameter is attempted. Before the value is returned it is allowed to initialize this Session Parameter, so it is passed in the SessionParametersSetting parameter.
In your case the first Session Parameter which is accessed is the CurrentUser that is why you see only it. Usually all parameters are initialized in the first call of the SessionParametersSetting procedure, but if you have many hardly calculated Session Parameters you might want to initialize them only when needed to make the startup faster. Also it is possible that not all Session Parameters are used for some users or most operations, in that case it is usable too.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.