Actually, the session id should be unique, otherwise multiple users would be sharing the same session, but then if one session no longer exists another could use the same session id.
Still seems a little strange though, but either way using an auto increment primary key column is better.
That said, you could give this a try for unique ids:
$token = sha1(uniqid(mt_rand(), true));