check session ways and open it when needs

#1535