Added session and persistent permission getter/setters