Fixed use of deprecated DOM API.
Modified session expiry to remove anonymous sessions 30 minutes after usage.