<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>AliveMedia, Inc. Weblog</title>
	<atom:link href="http://alivemedia.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alivemedia.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 27 Nov 2007 23:31:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alivemedia.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>AliveMedia, Inc. Weblog</title>
		<link>http://alivemedia.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alivemedia.wordpress.com/osd.xml" title="AliveMedia, Inc. Weblog" />
	<atom:link rel='hub' href='http://alivemedia.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Cookie.Path FTW!</title>
		<link>http://alivemedia.wordpress.com/2007/11/27/cookiepath-ftw/</link>
		<comments>http://alivemedia.wordpress.com/2007/11/27/cookiepath-ftw/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 19:56:42 +0000</pubDate>
		<dc:creator>alivemedia</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[cookies]]></category>

		<guid isPermaLink="false">http://alivemedia.wordpress.com/2007/11/27/cookiepath-ftw/</guid>
		<description><![CDATA[So I am working on a site that uses a customer membership provider I wrote so I can use my own database schema.    Pretty simple, I added in a feature where in the config you can pick which table and  fields to select from the database as well as a list of cookies to set when [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alivemedia.wordpress.com&amp;blog=2075980&amp;post=4&amp;subd=alivemedia&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I am working on a site that uses a customer membership provider I wrote so I can use my own database schema.    Pretty simple, I added in a feature where in the config you can pick which table and  fields to select from the database as well as a list of cookies to set when a user logs in.  This makes it easy for me to use on any database I end up with, here is the web.config:</p>
<p><font size="1" color="#0000ff">&lt;<font size="1" color="#a31515">membership</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">defaultProvider</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">EcommerceMembershipProvider</font><font size="1">&#8220;</font><font size="1" color="#0000ff">&gt;<br />
</font><font size="1" color="#0000ff">&lt;</font><font size="1" color="#a31515">providers</font><font size="1" color="#0000ff">&gt;<br />
&lt;</font><font size="1" color="#a31515">add</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">name</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">MyMembershipProvider</font><font size="1">&#8220;</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">type</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">MyMembershipProvider</font><font size="1">&#8220;</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">connectionStringName</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">myConnectionString</font><font size="1">&#8220;</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">membershipTable</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">Customer</font><font size="1">&#8220;</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">username</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">EmailAddress</font><font size="1">&#8220;</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">password</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">Password</font><font size="1">&#8220;</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">setAdditionalCookies</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">True</font><font size="1">&#8220;</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">cookieList</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">EmailAddress, CustomerID, ShipState</font><font size="1">&#8220;</font><font size="1" color="#0000ff"> </font><font size="1" color="#ff0000">selectFields</font><font size="1" color="#0000ff">=</font><font size="1">&#8220;</font><font size="1" color="#0000ff">EmailAddress, Password, CustomerID, ShipState</font><font size="1">&#8220;</font><font size="1" color="#0000ff">/&gt;<br />
&lt;/</font><font size="1" color="#a31515">providers</font><font size="1" color="#0000ff">&gt;<br />
&lt;/</font><font size="1" color="#a31515">membership</font><font size="1" color="#0000ff">&gt;</font></font><font size="1" color="#0000ff"> </font></p>
<p>As you can see I am setting 3 cookies, EmailAddress, CustomerID, and ShipState.  So far so good.  </p>
<p>I also needed a feature in the admin of the site so the site administrator could easily log as differnt users by click a special link in the admin &#8211; here&#8217;s where I started getting very weird behavior. </p>
<p>The auto login page I link to loads, calls my membership provider, logs the user in, sets the cookies and redirects to the page I want.  This works great on FF, not so much on IE 7.  I noticed that I always had 2 sets of cookies, one for the administrator that was logged in (admins use the same membership provider but have a different role assigned to them) and one for the user that I tried to auto login as. </p>
<p>But this only happens in IE 7?</p>
<p>It was always my understanding that setting a value of a cookie that already exists overwrites the value that was currently there, not creates a second duplicate.  And this was only happening in IE 7.</p>
<p>Here is my code for setting the cookies from my membership provider:</p>
<p><font size="1">HttpContext.Current.Response.Cookies(cookieName.Trim).Value = dr.Item(cookieName.Trim).ToString<br />
HttpContext.Current.Response.Cookies(cookieName.Trim).Expires = DateAdd(DateInterval.Month, 1, </font><font size="1" color="#0000ff">Date</font><font size="1">.Now)</font></p>
<p>Seems like it should work to me?  I search everywhere, just Google actually, and couldn&#8217;t find anyone having a similar problem.  I came across the Cookies Overview page at <a href="http://msdn2.microsoft.com/EN-US/library/ms178194.aspx" title="MS">MS</a> and it occured to me that maybe the cookie path for these sets of cookies differs for some reason.</p>
<p>So I added the following to my cookie setting code:<br />
<font size="1">HttpContext.Current.Response.Cookies(cookieName.Trim).Path = </font><font size="1" color="#a31515">&#8220;/store&#8221;</font></p>
<p><font size="+0">Problem solved!  Not exactly sure why, but hey IE 7 now works.</font></p>
<p>If anyone has any insight as to why this might happen please let me know.</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2falivemedia.wordpress.com%2f2007%2f11%2f27%2fcookiepath-ftw%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2falivemedia.wordpress.com%2f2007%2f11%2f27%2fcookiepath-ftw%2f" border="0" alt="kick it on DotNetKicks.com" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/alivemedia.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/alivemedia.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alivemedia.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alivemedia.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alivemedia.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alivemedia.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alivemedia.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alivemedia.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alivemedia.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alivemedia.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alivemedia.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alivemedia.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alivemedia.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alivemedia.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alivemedia.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alivemedia.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alivemedia.wordpress.com&amp;blog=2075980&amp;post=4&amp;subd=alivemedia&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alivemedia.wordpress.com/2007/11/27/cookiepath-ftw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbe40409b8a2fd096e5b85242387fd5a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">alivemedia</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2falivemedia.wordpress.com%2f2007%2f11%2f27%2fcookiepath-ftw%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Honda Classic Site Launched</title>
		<link>http://alivemedia.wordpress.com/2007/11/07/honda-classic-site-launched/</link>
		<comments>http://alivemedia.wordpress.com/2007/11/07/honda-classic-site-launched/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 19:46:46 +0000</pubDate>
		<dc:creator>alivemedia</dc:creator>
				<category><![CDATA[Website Launches]]></category>

		<guid isPermaLink="false">http://alivemedia.wordpress.com/2007/11/07/honda-classic-site-launched/</guid>
		<description><![CDATA[We finally launched the new Honda Classic website the other day, check it out: http://www.HondaClassic.com It came out pretty slick, some pretty funky CSS stuff going on here along with some nice PNG transparencies. Man I cannot wait until IE 6 is gone for good &#8211; who knows how long that will but I can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alivemedia.wordpress.com&amp;blog=2075980&amp;post=3&amp;subd=alivemedia&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We finally launched the new Honda Classic website the other day, check it out: <a href="http://www.HondaClassic.com/">http://www.HondaClassic.com</a></p>
<p>It came out pretty slick, some pretty funky CSS stuff going on here along with some nice PNG transparencies.  Man I cannot wait until IE 6 is gone for good &#8211; who knows how long that will but I can dream at least.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/alivemedia.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/alivemedia.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alivemedia.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alivemedia.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alivemedia.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alivemedia.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alivemedia.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alivemedia.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alivemedia.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alivemedia.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alivemedia.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alivemedia.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alivemedia.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alivemedia.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alivemedia.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alivemedia.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alivemedia.wordpress.com&amp;blog=2075980&amp;post=3&amp;subd=alivemedia&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alivemedia.wordpress.com/2007/11/07/honda-classic-site-launched/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbe40409b8a2fd096e5b85242387fd5a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">alivemedia</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://alivemedia.wordpress.com/2007/11/07/hello-world/</link>
		<comments>http://alivemedia.wordpress.com/2007/11/07/hello-world/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 19:27:54 +0000</pubDate>
		<dc:creator>alivemedia</dc:creator>
				<category><![CDATA[Blah Blah Blah]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Well I finally broke down and decided to create a blog, mostly because my girlfriend is sick of hearing me blather about ideas I have for programming and website stuff I find totally interesting. I will probably mostly be posting about other posts I have found interesting and decided to integrate into my programming. Since [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alivemedia.wordpress.com&amp;blog=2075980&amp;post=1&amp;subd=alivemedia&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well I finally broke down and decided to create a blog, mostly because my girlfriend is sick of hearing me blather about ideas I have for programming and website stuff I find totally interesting.</p>
<p>I will probably mostly be posting about other posts I have found interesting and decided to integrate into my programming.  Since I am the only programmer at my office this will hopefully give me a place to vent and get some creative feedback.</p>
<p>Anyways here goes!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/alivemedia.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/alivemedia.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alivemedia.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alivemedia.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alivemedia.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alivemedia.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alivemedia.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alivemedia.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alivemedia.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alivemedia.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alivemedia.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alivemedia.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alivemedia.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alivemedia.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alivemedia.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alivemedia.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alivemedia.wordpress.com&amp;blog=2075980&amp;post=1&amp;subd=alivemedia&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alivemedia.wordpress.com/2007/11/07/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fbe40409b8a2fd096e5b85242387fd5a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">alivemedia</media:title>
		</media:content>
	</item>
	</channel>
</rss>
