title: Accessing Session Data in ColdFusion
body: <p>Here I am trying to access session data in a cold fusion page. you can verify below code Section A code was placed in first page and Section B code was placed in second page. When I am going to second page from first page by printing session data,getting an error.But I can able to access session data in first page itself. Am i missing any required tag in second page to access session data.
  Can anyone please help me on it.</p>
  
  <pre><code>Section A
  &lt;cfapplication name="GetLeadApp"
  sessionmanagement="Yes"
  sessiontimeout=#CreateTimeSpan(0,0,45,0)#&gt;
  &lt;cfset session.uid="#FORM.Username#"/&gt;
  
  Section B
  &lt;cfoutput&gt;#session.uid#&gt;&lt;/cfoutput&gt;
  </code></pre>
  
  <p>Thanks,
  Swami</p>