I have a multiple page script which uses sessions to allow the user to enter data, the data is written to a MySQL db, and then returns the suer back to the entry page. Ater writing the inputted data to the db I would like to destroy the session (I have the page re-direct so that the ehaders are at the top of the file). However I can not seem to destroy the session without the user closing the browser window (YUCK). I am using cookies to pass the SID and GLOBALS are set to on.
In other words, How do you destroy a session without having the user close the browser window?