examples: fix bug in a session example
examples: fix bug in a session example

fixes #1054

tanveer12332/connect,mi2oon/connect,khalerc/connect,llwanghong/connect,liuwei9413/connect,khirayama/connect,mi2oon/connect,senchalabs/connect,keenwon/connect,gtomitsuka/connect,RoseTHERESA/connect,qitianchan/connect,wghust/connect,chinazhaghai/connect,behind2/connect,RickyDan/connect,austincitylimits/connect,lian774739140/connect,dkfiresky/connect