Session Object [AX 2012]
Updated: March 29, 2011
Applies To: Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
When adding code to User Controls for Enterprise Portal, many of the methods that you will use in the Enterprise Portal framework require access to the Session object.
The Session object can be accessed through the web part that is hosting the User Control. The following using statement is required to access the object.
A helper method is typically used to make accessing the Session object simple. The following private method can be added to the code for a User Control to provide access to the Session object.