Fix Year 2038 problem

Do not use signed 32-bit integer for timestamp.
Store Session ID in binary form

Session ID is stored to database as MD5 hash (128 bit number). Use the shortest data type (16 bytes).

Performance comparison between CHAR(32) and BINARY(16):
http://innvo.com/1294404525-storing-MD5-values