A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

LogoutRelExtension: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
(Updated to reflect no longer allowed in <a> elements.)
 
Line 14: Line 14:
   <link rel="logout" title="groupA" href="http://domain.tld/logout?param=value" />
   <link rel="logout" title="groupA" href="http://domain.tld/logout?param=value" />
</pre>
</pre>
[[Category:Rel extensions]]

Latest revision as of 14:03, 9 July 2013

The "logout" Link Relation

The "logout" link relation is used only within a <link> element to reference a resource that logs out the current "user." The href attribute must point to the same origin as the current document.

The user agent MUST NOT request the resource, except as follows:

  • The title attribute is used as a "grouping" identifier -- all open documents within the same domain that have the same title attribute value are considered in the same "group."
  • Upon closing all documents in the same group, the URI specified by the href attribute of the last window is sent a POST request with an empty body by the user agent.

An example:

  <link rel="logout" title="groupA" href="http://domain.tld/logout?param=value" />