you are right, I have to ture the session_autostart to off to make it work.
There's another issue. I was passing a datasource into the class, and after pass by session, the datasource object gets error:
Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition <b>db_mysql</b> of the object you are trying to operate on was loaded before the session was started
How to with the opened datasource in object then?