Permission error can be raised when you create sessions. The reason is that you don't have permission to write a session file or create a temporary directory on a directory for saving session. If the error is raised, change permission the directory.