session in a property field
<p>Is it ok to get/set session variable inside a private/public property?</p>

<pre><code>private List&lt;FileAttachment&gt; fileAttachments;
public List&lt;FileAttachment&gt; FileAttachments
{
    get
    {
        if (Session["key"] != null)
        {
            fileAttachments = (List&lt;FileAttachment&gt;)Session["key"];
        }
        return fileAttachments;
    }
    set
    {
        fileAttachments = value;
        Session["key"] = fileAttachments;
    }
}
</code></pre>

<p>The goal here is I'd like for the container class (of this user control the property is in) to be able to set the <code>List&lt;T&gt;</code> depending on what entity and show existing attachments that's stored in the database.</p>
