Added session update to hcppatch