Link to home
Start Free TrialLog in
Avatar of TetraSA
TetraSAFlag for Sweden

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??
Avatar of laotzi2000
laotzi2000

You can do
session("po") = nothing
in the page_load event handler of any other forms.
ASKER CERTIFIED SOLUTION
Avatar of Rodney Helsens
Rodney Helsens

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial