You're making assumptions here that are not correct. The login is part of the ROOT web application, and therefore your 'attribute' would be stored in it's http session. Your plugins have their own web application, and therefore have their own session.
Your first problem is trying to store this in the http session. Since you didn't indicate what the attribute is, it would be either something the user selects during login or a value that you derive based upon the user. If it is the former, instead you should think about using the user expando fields to store the value with the user (therefore it would be available everywhere), if it is something you derive from the user, then just use the derivation at the time the query must occur.
Second, you should not be doing retrieves on refresh. Portlet refreshes can occur many times, even if your portlet doesn't change. Instead you only do the retrieve during the action phase, and the render phase just does the render. That way you are only retrieving when you should, rather than for unrelated refresh activity.
Basically the portal environment should not be treated as a servlet environment. Any time you try to treat it that way, you are bound to get things just wrong.
Bitte melden Sie sich an, um diesen Inhalt als unangebracht zu kennzeichnen.