In my skylark web server app i use mysql server to store data.
the SqlSession didn`t have method such as "IsConnected()" so i can not hold the session
and have no choice but to connect to the server every time
You can use global SQL and SQLR and connect to your database when skylark threads are created (just once when your program starts)
Take a look at skylark tutorial - 9. Connecting SQL database