php - Timer Concept on Server Side -


here's scenario:

i have smartfox server running on amazon ec2 , using mysql database. i'm using as3 programming language.

i have virtual world in user can click on icon (like home design), , shows animation house getting built. takes 8 hours build , show percentage progress bar it's getting build.

i have used as3 timers, problem user might log out virtual world (or close browser) , come @ later (after maybe 2 8 hours, instance).

i haven't done before, can me details, such general strategy needs used , how implement, etc.

please help.

you - right after user clicks , starts process notify server , make server side script current time , save db. if user logs out right after that, retrieve saved timestamp each time client app starts again , calculate how time passed since timestamp taken (at server side), pass calculated value client. way have right time displayed , calculations client internal clock independent.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -