In .NET it's very simple. Add a session variable like
Session["var_name"]="all you want";
then when you want retrieve it do: string var=Session["var_name"];
Remember that you can insert object inside session, but when you retrieve it you must cast in the right type. Don't forget that session isn't unlimited in time.