SOAP API methode WebSite_createWebSession

Terug naar de indexpagina

Beschrijving
To register impressions and clicks, and to process webforms and surveys, you need a websession object that holds session information. This method can be used to construct a new session object. The ID of the returned object should be used for retrieving the same session object in subsequent calls. It is best to use a cookie for storing the session ID so that subsequent calls can use the same session object.

Parameters
Parameter 'id' : int
Unique identifier (id) of the object WebSite. The method only applies to the website with this id.
Parameter 'ip' : string
IP address
Parameter 'host' : string
hostname
Parameter 'useragent' : string
User agent string
Parameter 'referer' : string
Referer
Parameter 'login' : Structure of type 'login'
Optional login data

Return values
Return value 'websession' : Structure of type 'websession'

Structuur 'login'
De structuur 'login' is hierboven vermeld. Deze structuur heeft de volgende properties:
Eigenschap 'username' : string
The username of the login attempt
Eigenschap 'account' : string
The account name of the login attempt
Eigenschap 'password' : string
The password for the login attempt

Structuur 'websession'
De structuur 'websession' is hierboven vermeld. Deze structuur heeft de volgende properties:
Eigenschap 'id' : string
Unique identifier for the session.
Eigenschap 'firstimpression' : timestamp
When was the first impression during this session?
Eigenschap 'lastimpression' : timestamp
When was the last impression during this session?
Eigenschap 'duration' : integer
Duration of the session.
Eigenschap 'ip' : string
The IP address of the visitor.