Development Architecture blog is designed for developers who have some troubles in their code.
This blog will be mainly on web development, though many of it's posts can be used also on software design.
I wish you nothing but the best,
IE Blocking IFrame Cookies
A company wishes to set development standards.
A company you must know how to work with.
A company we all hate to love.
A little story, if I may.
I work in a company that supply sports betting solutions for online gaming web sites. About 2 months ago we got a new client with a slightly weird request - The solution should be placed in an existing site's IFrame.
The minute I heard that request I thought to myself that the amount of problems we'll encounter will give us tremendous amount of work. But as always - The client's always right.
Three weeks ago we were almost ready for beta when our QA discovered some small issues regarding user preferences: Odds, Time Zone and Languages are not displayed correctly only on IE 7 and IE 8.
After wishing some bad things to happen to Bill, my next action was to open the HttpWatch tool IE has and locating where the cookies are being set. I saw that whenever the cookies are set as Session Cookie i all work as it should, the problem then lays with cookies that have expiration date.
Since I was responsible for deploying 3 white labels (each project is called white label) this whole process took me about 2 weeks!
So, after writing some angry emails to Microsoft (but not sending them) I started looking for someone's solution to that problem. And that it was when I encountered a very small and cute article talking about P3P or as you might know it: "Platform for Privacy Preferences (P3P) Project".
In short, unless you have some identifier in the page's header - IE wont except you third-party cookie. So you need to set the P3P header in every page you wish the cookie to appear.
I took the time to write the header addition in some languages / platforms:
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
HttpContext.Current.Response.AddHeader("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
response = render_to_response('mytemplate.html')
response["P3P"] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'
response.addHeader("P3P","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"")
The term Web of Links refers to creating multiple sites, each connected to the other one, in order to promote a specific website.
This is exactly what a website owner would like, an hour work (and about 50$ investment) which will generate his website 25 links.
Web of Links is mainly for indexing purposes and less for getting a higher page rank (PR) in search engines (Google).
I'll start by explaining the benefits of the Web of Links method:
Let's say you just created a website.
You've made all the right things...
Listed your site in all the indexes websites, registered to Google Analytics and Google Web Master Tool and even wrote some content pages in order to attract visitors.
This is good, the only problem is that Google may have not indexed all you pages yet. If you're a small new website, this process can take awhile.
The Web of Links idea simply makes the linking process smoother.
File Linking, File Sharing and Shared Projects.
You know how it feels to have shared files on VSS? Gooood.
Actually it felt so good that my beloved CTO (who said something about promotion?) switched to TFS just 4-5 months ago. And ever since - I cry myself to sleep every night.
Instead of one file, shared between 5,6,7 or 10 projects, we now have a copied file for each project. This is due to Microsoft "Best Practice" which says - No Shared Files.
Finally, I have the fix we've all been waiting for, courtesy of VS 2010: "Add File As Link" How to Link Files to Different Projects:
Let’s say we have 2 completely different web sites.
One is 10Bet and the …