I've been working with PHP for the past 4 months or so in programming class; I'm in my senior year in high school. I've gotten a good (I think, at least) basis in PHP though developing a number of applications for my school's robotics team.
Now that I've done prettymuch everything they'll need for a few years, I'm moving on to my project for second semester: a full browser-based MMORPG. Quite ambitious, in retrospect.
I've spent the past few days writing formulas and functions for the different systems that are going to be involved, but I'm stuck on one crucial part: login.
I need to be able to know who is online, and be able to generate a list so that I can allow player-versus-player fights, and so forth. I also need to make sure a player is logged out when they close their window. The admin panel I wrote for the robotics team (that was login protected) used arrays with usernames/passwords/access levels as opposed to a MySQL database, and did not need a list of people currently using the panel.
If anyone has suggestions on where I should start looking to be able to do this, that would be great.
I've checked out a few avenues, one of which was storing session data (hashes, I believe) serverside in a MySQL database, though in that system I could not ensure a logout when a browser window is closed -- that is, unless I missed some feature of it, which is likely... due to my relative inexperience.
Thanks,
Trevor