I agree with tre. Probably there is another solution that I am using.
I used tempory database and cookie to store user's information. Every time auth users login, the tempory database can issue them random and unique ID.
I am not using sessions. The one thing I don't like sessions is each session you create is stored in the file on the server.
Hope it could be helpful.
Angela