                     # Handle redirect
                     if error is 'FOUND'
                         location = xhr.getResponseHeader('Location')
-                        @notifyTimeout(location)
-
-        notifyTimeout: (location) ->
+                        @timeout(location)
+
+        timeout: (location) ->
             if location
                 message = "Your session timed out. Please \
                           <a href=\"#{ location }\">refresh the page</a>."

                success: (resp, status, xhr) =>
                    if resp.status is 'timeout'
                        @stopPing()
                        @notifyTimeout(resp.location)

                error: (xhr, status, error) =>
                    @stopPing()

                dismissable: false
                timeout: false
                level: 'warning'

            # Auto-refresh after some time
            setTimeout ->
                if location
                    window.location = location
                else
                    window.location.reload()
            , 5000

        parse: (attrs) ->
            # Title of the API
