remove default array.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
add private config variable and check initialize session.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>