Add a check for the hooks. The hooks should only run for the frontend.
Change the load session and save session function.
Add a try catch block when updating the cookie.
Remove a function for older version support.
Add a missing '()' for a function call.
Cleanup the code.
Change the function call 'key_exists' to 'array_key_exists'
We can not use the deserialize any longer. So we chnage it to a @unserialize call.
Add a function for appending data from a array to the container.
Cleanup the code.