TetraSA
asked on
Clear SESSION variable on webform exit
Hi ,
I am working on a Purchase Order application in ASP.net.
I have a form that lets the user add a PO , entering its header and the details part of the PO.
I save the details part of the PO in a Datatable temporarily , till the user selects on ADD to add the PO to the database.
I store the Datatable in a SESSION variable.
What I want to do is clear this SESSION variable when the user exits the PO form. (i.e when the user moves to any other form in the application)
How can I do this??
I am working on a Purchase Order application in ASP.net.
I have a form that lets the user add a PO , entering its header and the details part of the PO.
I save the details part of the PO in a Datatable temporarily , till the user selects on ADD to add the PO to the database.
I store the Datatable in a SESSION variable.
What I want to do is clear this SESSION variable when the user exits the PO form. (i.e when the user moves to any other form in the application)
How can I do this??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
session("po") = nothing
in the page_load event handler of any other forms.