Updated cookie session plugin