Changing standard session to cookie session.