Howdy all,

I've searched and can't find any good help. I'm a tad confused aswell.

I'm pretty nub to PHP. I mean, I can do basic database queries, and all the other basic stuff (loops, all that), but I can't figure this out.

I'm wanting a login system, where if a user logs in, they stay logged in, until they log out, or they close their browser. So in other words, I don't know how to write cookies (or files for that matter) in PHP. How would I go about doing this? The way I *thought* was to enter true in an "online" field inside a table. But then, how would I remove this when they close their browser?

TIA,

chem