On session_destroy() Insert Into SQL

FearedDesign

New Member
I am writing code that is meant to insert values into a SQL table if session_destroy() is executed. The reason for this is that I need to store the current session id into a session_count table if the browser is closed, but also destroy the session. I tried various methods, one of which was\[code\]if (session_destroy() == True) { mysql_query("INSERT INTO session_count (Session_ID) VALUES ($new_session_id)");}\[/code\]but it didn't help.Help is truly appreciated.Thank you.
 
Back
Top