title: Variable ID is undefined
body: <p>Can anyone review this code and tell me why I am getting variable ID undefined error?</p>
  
  <pre><code>&lt;cffunction name="login" access="public" returntype="void"&gt;
    &lt;cfargument name="rc" type="struct" required="true"&gt;
    &lt;cfset user = getUserService().login(arguments.rc.Username,arguments.rc.password)&gt;
    &lt;cfif isDefined('User')&gt;
      &lt;cfset session.auth = structNew()&gt;
      &lt;cfset session.auth.isLoggedin = "yes"/&gt;
      &lt;cfset session.auth.user = user /&gt;
      &lt;cfset session.auth.id = id&gt;  
      &lt;cfset session.auth.username = UserName /&gt;
      &lt;cfset session.auth.password = password /&gt;
    &lt;cfelse&gt;
      &lt;cfset rc.message = createMessage('error','','entered password is wrong')&gt;
      &lt;cfset variables.fw.redirect('login.default','message')&gt;
    &lt;/cfif&gt;
    &lt;cfset variables.fw.redirect('')&gt;
  &lt;/cffunction&gt;
  </code></pre>