How can I make Webkitgtk store cookies for logins?

I have a project in cpp at . How can I make the webkit store logins an reuse then when I ran the app again. There isnt a tutorial on how to do it at the webkit site, maybe you have an idea
Last edited on
Well from a WebKitWebView, we have
WebKitWebContext * webkit_web_view_get_context ()

From that, we can get to
WebKitCookieManager * webkit_web_context_get_cookie_manager ()

From there, you can load and save cookies.
I have tried researching on how to use WebKitCookie manager but im geeting stuck on actually saving and lood them. I can create a manager and set a policie but on
webkit_cookie_manager_add_cookie (WebKitCookieManager *cookie_manager,
                                  SoupCookie *cookie,
                                  GCancellable *cancellable,
                                  GAsyncReadyCallback callback,
                                  gpointer user_data);

I dont know what goes on GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data. I have tried reading on them but I cant find anything helpful
Registered users can post here. Sign in or register to post.