Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 newbie questions #52

Closed
danijel opened this issue Jul 13, 2011 · 4 comments
Closed

2 newbie questions #52

danijel opened this issue Jul 13, 2011 · 4 comments

Comments

@danijel
Copy link

danijel commented Jul 13, 2011

Hello,
I'm new to CefSharp, and so far it's been working great.
I was able to build it with .NET 2 and it works pretty good

  1. question is with regard to persistent cookies:
    For example: If I open Facebook or Netflix I have to log in, and after checking "Keep me logged in", in regular browser I don't need to log in again on browser reopening, with CefSharp I get prompted to log in again.
    As I see CEF version used in chillitom tree does not have Persistent Cookies, but newer branches like ataranto tree has it.
    How do you make CefSharp use PersistentCookies?

2.question
How do I turn off logging?

Thanks for your answers.

@ataranto
Copy link
Contributor

This is an issue tracker not a discussion forum.

  1. Persistent cookie support was added to CEF (the library that CefSharp wraps) in r196. chilitom's repo wraps CEF r193. My fork wraps CEF r264. Use my fork.
  2. Which logging are you referring to? JavaScript console messages?

@danijel
Copy link
Author

danijel commented Jul 13, 2011

Sorry about asking questions here, but I didn't know where to ask, and I saw some questions here.
Thank you very much for your quick replay.

I tried your fork, but I'm not doing something right. Do I need enable persistent cookie support, if so, how?

I was talking about debug.log file that gets created, but now I see I was running in debug mode.

@ataranto
Copy link
Contributor

Regarding persistent cookies:
You'll need to set a cache path. Also, The persistent cookie implementation only flushes to disk once every 30 seconds OR when you call CEF.Shutdown().

var settings = new Settings();
settings.CachePath = @"C:\Path\To\Your\Cache\Dir";
CEF.Initialize(settings);

@ghost
Copy link

ghost commented Jul 14, 2011

About logging:
It setted up by CefSettings, but in CefSharp LogFile & LogVerbosity properties is absent.
By default (even in release build) CEF always writes javascript messages in this log file (named debug.log).
So for configuring logging you needed implement this two properties in Settings.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants