Rewrite session_info()
Implement use_data(). Closes #542