factorize session getters