Update openapi.class.php

Add auto logout option after execute some function.

todo:
$config['auto_logout'] = true;