southbeach
Programmer
I am about to start writing a procedure to store and extract session information in and out of MySQL.
The need arises due to need to capture user's last known session status to recover in the event of power failure or possible browse closure. The page is opened via a shortcut that looks like this
URL=http://mydomain.com/index.php?drawer=0001
each work station should have an assigned drawer ID thus it being the "key" to session recovery.
Now, a simple table (no problem) and a routine to dump the session content into it.
So, how do you dump $_SESSION into `table`.`column`?
As I post this, I am writing a foreach() loop to scan through the array, extract the key and value pairs and write that to the data and then will need to write the code to pair them back into an array ... when recovering the session
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
The need arises due to need to capture user's last known session status to recover in the event of power failure or possible browse closure. The page is opened via a shortcut that looks like this
URL=http://mydomain.com/index.php?drawer=0001
each work station should have an assigned drawer ID thus it being the "key" to session recovery.
Now, a simple table (no problem) and a routine to dump the session content into it.
So, how do you dump $_SESSION into `table`.`column`?
As I post this, I am writing a foreach() loop to scan through the array, extract the key and value pairs and write that to the data and then will need to write the code to pair them back into an array ... when recovering the session
--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.