add session plugin and cookie plugin