Hey Tibby.
The proper way to create a session variable is:
Session["VarName"] = value;
Or you can use the Add method as:
Session.Add("Va rName", value);
Either way will work.
Next to remove an item from the session state:
Session.Remove( "VarName");
To clear all items from the session state use:
Session.Clear() ;
HTH.
Jeff Ptak
[color=blue]
>-----Original Message-----
>What is the proper way to creating Session Variables and[/color]
destroying them. I[color=blue]
>think this is what my major problem is. And, can that be[/color]
done also for[color=blue]
>ADO.NET objects?
>
>Thanks
>Tibby
>
>
>.
>[/color]
The proper way to create a session variable is:
Session["VarName"] = value;
Or you can use the Add method as:
Session.Add("Va rName", value);
Either way will work.
Next to remove an item from the session state:
Session.Remove( "VarName");
To clear all items from the session state use:
Session.Clear() ;
HTH.
Jeff Ptak
[color=blue]
>-----Original Message-----
>What is the proper way to creating Session Variables and[/color]
destroying them. I[color=blue]
>think this is what my major problem is. And, can that be[/color]
done also for[color=blue]
>ADO.NET objects?
>
>Thanks
>Tibby
>
>
>.
>[/color]
Comment