How can I use session in database table with php and mysql?
You control this in php.ini under the session_handler directive. Check out http://www.tonymarston.net/php-mysql/session-handler.html for a easy walk through (used it before).
php.ini
session_handler