diegoseso/parchis

Check frontend login method

Opened this issue · 0 comments

Right now if a user registers successfully a cookie on the frontend will be created

Cookie name:username -> value: username

This cookie is not being checked for expiry date, It should be 20 minutes (set this time as a game variable changeable in the future)
The cookie should be refreshed upon users action for another 20 minutes from the time that the action occurred (decide which action will be selected as a trigger)

On the server side:
A defer method shall be created to handle the onlinePlayers List , if the ws closes the onlinePlayer list will have that session erased.