fix(socketio): Scoping & hoisting bugs
fix(socketio): Scoping & hoisting bugs

Due to the previous logic, cookie data seemed inconsistent causing ghost
sessions.

frappe/frappe,frappe/frappe,frappe/frappe