- Home /
Php Character list/sessions
Hello, i am currently working on a multi-player game (think of a tiny scale mmorpg), based on unity and photon.
Currently i have a login system in place and a basic starting area, after registration, users enter the world and are randomly named guest-xxx (xxx denotes numerical values). I am about to start working on a character creation system which i would like to tie into a character mysql database (the database i have nearly completed), however i wanted to ask several questions before i start.
Firstly, is it possible to use php sessions within the www class? For example, player logs in, set session for account id, then for characters, draw character list from sql where account id = session id.
any examples or snippets would be greatly appreciated :)
Secondly, storing data. for primary data such as levels etc i intend to set up interval in which data would be saved to the sql database however, what is the best method for saving data in the mean time, such as current hp etc? i have looked into player.prefs, however they seem to be saved client-side...which is a big nono.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How to implement "Owner" (as in P1 or P2)? 1 Answer
Testing my multiplayer character offline 0 Answers
When i make a multiplayer game, all characters are controlled by everyone 0 Answers
Pause online game 1 Answer