'Given a player and a session id, return the actual session
object.
Args:
player (Player): The Player to get the Session from.
sessid (int or list): Session id(s).
Returns:
sessions (Session or list): Session(s) found.'

def session_from_player(self, player, sessid):

    sessions = [self[sid] for sid in make_iter(sessid) if ((sid in self) and self[sid].logged_in and (player.uid == self[sid].uid))]
    return (sessions[0] if (len(sessions) == 1) else sessions)
