Passing C# custom objects in Session between asp.net web pages
<p>I have a frustrating issue when trying to pass a custom object from 1 page of a web site to another.  When I try to use the object from session on the page 2 it is null.  I believe that my syntax is correct as when I take the code out of my larger solution and run it on it's own it works fine.</p>

<p>I am wondering if there are any settings in visual studio, aspx files, project properties that may be set on my project that may be causing this session object not to work?</p>

<p>Simplied syntax that I am using is;
on page1</p>

<pre><code>Person p = new Person;
p.name = "john"; 
p.secondName = "doe";
Session["person"] = p.
Response.Redirect("Page2.aspx")
</code></pre>

<p>Page 2 on page load method</p>

<pre><code>Person p = (person)Session["person"]
textbox1.Text = p.name;
textbox2.Text = p.Secondname;
</code></pre>

<p>As I said this code works fine on it's own but not as part of my larger works project. Any ideas on why this may not be working would be greatly appreciated</p>
