Working on HTTP layout and creating sessions