Fixed server to have cookies in the correct dir

Added argument to cookie set in server to allow cookies in the root
directory and all subdirectories.