Hello,
I have a PHP webpage and I want to pass my session to my XBAP app.
I created a cookie.
$opts = array('http' => array('header'=> 'Cookie: ' . $_SESSION['FILENAME']."\r\n"));
$context = stream_context_create($opts);
$contents = file_get_contents("http://localhost/WpfBrowserApplicationUltimate.xbap", false, $context);
echo $contents;
private void btnAbout_Click(object sender, RoutedEventArgs e)
{
//MessageBox.Show("RichTextPad. © 2014 University.", "About RichTextPad", MessageBoxButton.OK, MessageBoxImage.Information);
try
{
String cookie = Application.GetCookie(BrowserInteropHelper.Source);
MessageBox.Show(cookie);
}
catch (Win32Exception)
{
}
}
But the magic doesn't happen.
Can someone clarify what am I doing wrong?
Thanks.