update: function session/ check session