Provide sessions attributes in template
For customization, we need to be able to display some user informations in portal. So it would be great to load as template parameters all sessions attributes, with a prefix in key, for example : 'session_'
So to display 'cn', we can call this in template:
<TMPL_VAR NAME="session_cn">