This document is intended for web masters who want to use Swekey
Authentication in their web sites.
This document assumes that the following Tech Notes have been read:
Once your web site has authenticated a swekey, you may want to know when
the authenticated swekey gets unplugged to end your session.
A very simple solution consists in poling the presence of the Swekey
using the Java Script function at regular intervals.
This technique may not work if you need to be notified even if all your
web pages are closed.
This document explains how to set, one or more, URLs
notification in such a case.
URL notification
The URL notification technique consists in associating a set of URLs
(on your server) to a plugged Swekey. When the Swekey gets unplugged,
all the associated URLs are started silently.
The pages returned by those URLs are ignored, so you don’t need
to return anything when your server receives the URL requests.
How does it work ?
To associate an unplugged URL to the Swekey, you should use the Swekey_SetUnplugUrl(swkid, key, url)
Java Script API where:
swkid is the
id of your Swekey you want to associate the URL with.
key is a
unique identifier you should use to be able to change or delete the URL.
url is the
URL you want to associate with the Swekey.