Using session to get infomations.