session upgrade