SecurityToken invalid

1. use activex(ImageViewer.cab) to view the camera.(not use EngineManager.cab)

2. get the logintoken from ServerCommandService(webservice)

3. get the camera config xml fron “http://xxxxxx/RCServer/systeminfo.xml”,

4. get the camera node from the config xml

5. replaced the ‘connectparam’ by logintoken

but Every 4 hour the activex will prompt SecurityToken invalid.

What can I do to avoid ‘SecurityToken invalid’ ?

you have to re-login and get new token when it runs out - default is 4 hours. The LoginInfo returned in the Login call contains the interval.

And then pass it to the ImageViewer.

have any properties that can be pass the interval into ImageViewer ?or have events to let me know the token run out

i find SetOnConnectionLostEventStatus event

When you login, you receive a LoginInfo class that contains the length in time the token is valid.