Announcement

Collapse
No announcement yet.

Triggering an event when someone signs in to web server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Triggering an event when someone signs in to web server

    Is it possible to trigger an event in HS when someone signs in to the HS web server. I guess I could monitor the HS log and look for a message indicating that someone has signed in to the web server, but is there a more effective way to do this?

    Has anyone done it?
    Cheers,
    Bob
    Web site | Help Desk | Feature Requests | Message Board

    #2
    Sure. If your main page is an ASP page you could then simply use something like:
    <pre class="ip-ubbcode-code-pre">
    if Request.ServerVariables("AUTH_USER") = "guest" then
    hs.TriggerEvent "guest"
    end if
    </pre>
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Rupp,

      But wouldn't the event trigger if they go off of the page and then back again.

      So everytime they loaded the initial page, the event would execute.
      Cheers,
      Bob
      Web site | Help Desk | Feature Requests | Message Board

      Comment


        #4
        Yep it sure would. So I would create a default.asp page that simply calls the event and then redirects to you main entry page. This way the main entry page doesn't rerun the event.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          Thanks Rupp for jarring my thinking on this. I don't know why I did not think of it myself.

          I now get a message server popup message when someone signs into my HS web server

          Thanks again
          Cheers,
          Bob
          Web site | Help Desk | Feature Requests | Message Board

          Comment

          Working...
          X