I have several custom iNotes session variables (example: calculation of DB size minus whitespace) that I use in a custom quota function to disable mailsend capabilities in the iNotes interface. I want to know the current “best-practice” way to make these variables available throughout the entire iNotes interface. The variable is calculated once per session (or by manual button-click) and does not live longer than the session.
Since R5, I have been using an XmlHttpRequest to get the DB size data from an agent in the mailfile and store it in a session cookie, since I didn’t know any better way to make it available throughout all iNotes scenes.
However, I am assuming that there is a better and more efficient way to store such a variable. I would have liked to store it in the DOM or a javascript object, but I was not knowledgeable enough about the haiku object to copy its methodology.
In the iNotes Lite articles on the Wiki, have read about Common Properties and this seems promising.
Could someone please tell me what is the preferred way to store custom session variables in the iNotes Lite architecture?