<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tutorialwelt.de &#187; Ajax Chat</title>
	<atom:link href="http://www.tutorialwelt.de/category/ajax-chat/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tutorialwelt.de</link>
	<description>Tutorials aus der IT-Welt</description>
	<lastBuildDate>Sat, 22 May 2010 13:24:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Cookies von Iframes im Internet Explorer</title>
		<link>http://www.tutorialwelt.de/174/cookies-von-iframes-im-internet-explorer.htm?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cookies-von-iframes-im-internet-explorer</link>
		<comments>http://www.tutorialwelt.de/174/cookies-von-iframes-im-internet-explorer.htm#comments</comments>
		<pubDate>Fri, 28 Aug 2009 13:06:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ajax Chat]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.tutorialwelt.de/?p=174</guid>
		<description><![CDATA[...Hierbei geht es um den Umgang mit Cookies von Drittanbietern. Der Internet Explorer behandelt dies anders als Opera, Firefox und alle anderen. Beim Internet Explorer muss man in jede Datei, die mit Cookies arbeitet folgende Header einfügen...


No related posts.

Ähnliche Artikel bereitgestellt von <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<h1 style="font-size:16px;">Cookies von Iframes im Internet Explorer</h1>
<p>Ich bin mal wieder über eine Stolperfalle des Internet Explorer gestolpert. Ich installierte einen AJAX-Chat von Blueimp auf einem Server und sollte diesen dann auf einer anderen Seite per iframe anzeigen lassen.</p>
<p>Dies ist der Chat: <a title="kostenloser Ajax Chat für Ihre Webseite" href="https://blueimp.net/ajax/">Ajax Chat</a>.</p>
<p>Beim Test des Chats im Internet Explorer erschien die Meldung, daß Cookies benötigt werden. Cookies waren jedoch angeschaltet.</p>
<p>Eine Recherche ergab, daß die W3C eine Platform for Privacy Preferences kurz P3P erstellt hat.<br />
Wer es nachlesen möchte findet den originaltext hier: <a title="P3P - Platform for Privacy Preferences" href="http://www.w3.org/P3P/">P3P &#8211; Platform for Privacy Preferences</a><br />
Hierbei geht es um den Umgang mit Cookies von Drittanbietern. Der Internet Explorer behandelt dies anders als Opera, Firefox und alle anderen. Beim Internet Explorer muss man in jede Datei, die mit Cookies arbeitet folgende Header einfügen:</p>
<p><small>Beispielcode PHP:</small></p>
<div style="border-style: inset; border-color: #a39c87 #a39c87 #e0d7b9 #e0d7b9; width: 100%; background-color: #f4f0e2; padding: 10px; overflow: auto;"><code></p>
<pre>   header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');</pre>
<p></code></div>
<p><small>Beispielcode ASP.NET:</small></p>
<div style="border-style: inset; border-color: #a39c87 #a39c87 #e0d7b9 #e0d7b9; width: 100%; background-color: #f4f0e2; padding: 10px; overflow: auto;"><code></p>
<pre>   HttpContext.Current.Response.AddHeader("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");</pre>
<p></code></div>
<p><small>Beispielcode Django:</small></p>
<div style="border-style: inset; border-color: #a39c87 #a39c87 #e0d7b9 #e0d7b9; width: 100%; background-color: #f4f0e2; padding: 10px; overflow: auto;"><code></p>
<pre>   response = render_to_response('mytemplate.html')
response["P3P"] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'</pre>
<p></code></div>
<p><small>Beispielcode Django:</small></p>
<div style="border-style: inset; border-color: #a39c87 #a39c87 #e0d7b9 #e0d7b9; width: 100%; background-color: #f4f0e2; padding: 10px; overflow: auto;"><code></p>
<pre>   response.addHeader("P3P","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"")</pre>
<p></code></div>
<p>Für den Ajax-Chat von Blueimp galt es nun diesen Header an einer geeignete Stelle einzufügen. Ich habe dazu gleich die index.php genommen und an folgende Stelle im Code eingefügt:</p>
<p><small>Beispielcode Blueimp Ajax Chat index.php:</small></p>
<div style="border-style: inset; border-color: #a39c87 #a39c87 #e0d7b9 #e0d7b9; width: 100%; background-color: #f4f0e2; padding: 10px; overflow: auto;"><code></p>
<pre>// Show all errors:
error_reporting(E_ALL);
<strong>//header for iframe cookies in Internet Explorer:
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');</strong>

// Path to the chat directory:</pre>
<p></code></div>
<p>Blueimps Ajax Chat lief nun auch innerhalb eines Iframes im Internet Explorer.</p>


<p>No related posts.</p>
<p>Ähnliche Artikel bereitgestellt von <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.tutorialwelt.de/174/cookies-von-iframes-im-internet-explorer.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

