[eluser]jedd[/eluser]
[quote author="Devyn" date="1253233117"]
I'm developing a php game with CodeIgniter and my system is going to accept some data that I don't want to be changed by user.
Since cookie is not secure, storing session data in MySQL is one of the option.
[/quote]
What makes you think cookies aren't secure?
You can [url="http://ellislab.com/codeigniter/user-guide/libraries/encryption.html"]encrypt[/url] your [url="http://ellislab.com/codeigniter/user-guide/libraries/sessions.html"]session data[/url] by setting
$config['encryption_key'] in your
config/config.php file.
This makes your session data / cookie particularly secure, and would probably be much easier than the kinds of things you're looking at doing.