Click here to Skip to main content
16,021,580 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am currently using httpWebRequest to be able to login in a game.
I first get my cookie, then do a POST data to be logged in. This works and I am logged in.

What I want now, is that the user is able to navigate in the game via CefSharp. So I thought two differents things to do that :

- Give my cookie to CefSharp so my session is still the same and it's not gonna ask me to log again (and so to logout the program)
- Or forward the url to a localhost so the session is still the same for both (and could even access it on normal browser).
Like that :
From "http://mygame.fr/game/index.php?page=overview"
To "http://127.0.0.1:8710/game/index.php?page=overview"

For both cases I didn't find anything that could help me, and don't really have any idea where to search.

Thanks for any help.

What I have tried:

When I am logged in I have that

using (StreamReader sr = new StreamReader(getResponse.GetResponseStream()))
            {
                string sourceCode = sr.ReadToEnd();


                HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
                doc.LoadHtml(sourceCode);
                if (doc.ParseErrors.Count() == 0)
                    planetList = new PlanetList(sourceCode);

                // Here would like to forward or to give my cookie to cefsharp so the user can navigate, and the program still be loged in
            }
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900