Safely save and retrieve PHP session data in MySQL.