add session and cookie and connecting count