Added sessions to scripts and server files