For those that are quite familiar with PHP, maybe you can give me concrete advise on this.

If I wanted to use sessions to store a particular ID for each login, but only for the period of time the person stayed logged in, would I be better off using session management to store the ID in a mySQL db or a file of some sort?

Also, are there any advantages to using one over the other?

thanks,