-#if 0
- // set local storage, favion, cookies
- std::string webkit_path = boost::any_cast <std::string> (config.get("webkit/dir"));
-// ewk_context_web_storage_path_set(context, (webkit_path + std::string("/storage")).c_str());
- ewk_context_favicon_database_directory_set(context, (webkit_path + std::string("/favicon")).c_str());
- ewk_cookie_manager_persistent_storage_set(ewk_context_cookie_manager_get(context)
- , (webkit_path + std::string("/cookies.db")).c_str()
- , EWK_COOKIE_PERSISTENT_STORAGE_SQLITE);
-
-///\note Odroid modification - not exists in WebKit API
-// ewk_cookie_manager_widget_cookie_directory_set(ewk_context_cookie_manager_get(context), webkit_path.c_str());
-#endif
+
+ ewk_context_cache_model_set(m_ewkContext, EWK_CACHE_MODEL_PRIMARY_WEBBROWSER);
+ std::string path = app_get_data_path() + COOKIES_PATH;
+ ewk_cookie_manager_persistent_storage_set(ewk_context_cookie_manager_get(m_ewkContext), path.c_str(), EWK_COOKIE_PERSISTENT_STORAGE_SQLITE);
+