Monday, May 21, 2007

Programming : Create Cookies Cross Domain

IIS setting - Create Cookies Cross Domain
It is impossible to create cookies cross domain because the reason of security. But you still can do some triky to let your web site create cookies cross domain.

To create cookies cross domain, you need to create 2 XML file. These are p3p.xml and policy.xml.

P3P is a W3C standard on how to specify privacy policies for a web site. The standard has both a human readable part to it, as well as a machine readable part.


Step by Step

Open your IIS and expand local computer -> expand Web Site -> Expand Default Web Site -> go to your virtual directory -> right click to properties -> go to Http Header Tab -> Custom Http Headers and click Add -> Key in Custom Header name ="(P3P) and Custom Header Value = "(policyref="Full URL for ur policy file location", CP="NON DSP COR CURa TIA")"

You can create cookies cross domain if you follow all the step. If you got any Question, please leave me a comment.

92 comments:

Anonymous said...

Could you please let me know how to make cookies across the domain?
On which domain we need to add these?
I created custom header P3P and
Policyref="Full URL for ur policy file location",CP="NON DSP COR CURa TIA"

Is it correct?

Dileep

Emil Chang said...

yup, correct.
you create P3p on the domain that you keep cookies

<a href="http://www.xanga.com/buy_levitra">BuyLevitra</a> said...

Thanks for article!

<a href="http://phentermine1.eamped.com">Phentermine</a> said...

Thanks for interesting article.

<a href="http://search2.site.io/index.html">Viagra</a> said...

Glad to read articles like this. Thanks to author!

<a href="http://courses.cvcc.vccs.edu/ENG112_GROSS/_Chat_Room/000008fd.htm">Anonimous</a> said...

Excellent website. Good work. Very useful. I will bookmark!

Mahesh said...

Could you please tell me How to make cross domain cookie access in JSP? I want to access of cookie created by my 200.11.55.121 domain from 192.165.156.22 ?

How it is possible in JSP ?

<a href="http://paydayadvisors.org">PaydayLoans</a> said...

PSg33b You have a talant! Write more!

<a href="http://tes.uab.es/MISS/portal_memberdata/portraits/twkgxziok">Auto insurance company</a> said...

Oz1Y83 Hello all!

<a href="http://hydrocodone.99k.org/index.php">Hydrocodone</a> said...

o8cHZP The best blog you have!

<a href="http://users2.titanichost.com/buyviagra/280.html">new construction home loan</a> said...

tKk04R Nice Article.

<a href="http://free.7host07.com/nmcfgy/138.html">allentown house tours</a> said...

actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.

<a href="http://fioricet.clanteam.com/?pharma=262">fioricet during pregnancy</a> said...

Hello all!

<a href="http://celebrex.zxq.net/?pharma=1427">does celebrex thin the blood</a> said...

Hello all!

<a href="http://m1.aol.com/BrettHead14/54.html">ohio casualty insurance co</a> said...

Magnific!

<a href="http://users2.titanichost.com/buyviagra/index9.html">phentermine home</a> said...

Hello all!

<a href="http://vicodin.newsit.es/buy-vicodin-online-tk.html">buy vicodin online tk</a> said...

Wonderful blog.

<a href="http://tramadol.newsit.es/most-cheapest-tramadol.html">most cheapest tramadol</a> said...

Nice Article.

<a href="http://vicodin.newsit.es/discount-vicodin-prescription.html">discount vicodin prescription&lt;</a> said...

Nice Article.

<a href="http://phentermine.whdot.com/index.html">viagra</a> said...

Please write anything else!

<a href="users2.titanichost.com/amalopra">JohnBraun</a> said...

8VUIjz write more, thanks.

<a href="http://users2.titanichost.com/popebatret/index13.html">college sex tied</a> said...

Nice Article.

<a href="http://users2.titanichost.com/inoryum/index25.html">dominant top sex</a> said...

Magnific!

<a href="http://users2.titanichost.com/hviler/index30.html">anime sex vids</a> said...

Hello all!

<a href="http://users2.titanichost.com/ansfur/index21.html">lesbian celebrity sex</a> said...

Please write anything else!

<a href="http://users2.titanichost.com/olds77/index20.html">free pink anal teen</a> said...

Magnific!

<a href="http://users2.titanichost.com/shingro/index1.html">set of sex</a> said...

Good job!

<a href="http://users2.titanichost.com/scersi/index12.html">e-mail chat sex</a> said...

Thanks to author.

<a href="http://users2.titanichost.com/t1fielde/index12.html">oregon sex singles</a> said...

Hello all!

<a href="http://users2.titanichost.com/adjutes/index25.html">bear and sex</a> said...

Good job!

<a href="http://users2.titanichost.com/adjutes/index11.html">bech no sex</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/shiconta/index33.html">couples interests sex</a> said...

Hello all!

<a href="http://users2.titanichost.com/gnites3/index22.html">horses having sex</a> said...

Thanks to author.

<a href="http://users2.titanichost.com/marymeno/index10.html">punch sex scene</a> said...

Please write anything else!

<a href="http://users2.titanichost.com/vadhoms/index28.html">male sex penis</a> said...

If ignorance is bliss, you must be orgasmic.

<a href="http://users2.titanichost.com/etooking/index24.html">nsa sex johannesburg</a> said...

Energizer Bunny Arrested! Charged with battery.

<a href="http://users2.titanichost.com/swiseny/index29.html">disney secret sex</a> said...

640K ought to be enough for anybody. - Bill Gates 81

<a href="http://users2.titanichost.com/Lostsoldier3/index26.html">free online porn clips</a> said...

What is a free gift ? Aren't all gifts free?

<a href="http://users2.titanichost.com/pyzoid/index17.html">boulder sex incall</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.titanichost.com/pyzoid/index29.html">boy sex animatied</a> said...

Oops. My brain just hit a bad sector.

<a href="http://users2.titanichost.com/selli83/index20.html">alex tilson sex</a> said...

Nice Article.

<a href="http://users2.titanichost.com/numdaso/index15.html">islander sex videos</a> said...

Please write anything else!

<a href="http://users2.TitanicHost.com/unite/index4.html">i want mdma</a> said...

I'm not a complete idiot, some parts are missing!

<a href="http://cialis.whdot.com/index1.html">generic cialis pills stories</a> said...

Please write anything else!

<a href="http://web.archive.org/web/20070818074049/xanga.com/buyultramonline">order ultram</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.titanichost.com/numdaso/index17.html">japanese sex 21</a> said...

Friends help you move. Real friends help you move bodies

<a href="http://users2.titanichost.com/febisko/index10.html">best sex wine</a> said...

Magnific!

<a href="http://users2.titanichost.com/topletrufus/index16.html">geisha sex doll</a> said...

Wonderful blog.

<a href="http://users2.titanichost.com/yetzeit/index1.html">arab sex videos</a> said...

640K ought to be enough for anybody. - Bill Gates 81

<a href="http://users2.titanichost.com/brittanyrogers/38-0411.html">all dimes sex</a> said...

What is a free gift ? Aren't all gifts free?

<a href="http://users2.titanichost.com/glicia80/index26.html">sex aunt polly</a> said...

Beam me aboard, Scotty..... Sure. Will a 2x10 do?

<a href="http://users2.titanichost.com/reekello/index6.html">daily sex cum</a> said...

Magnific!

<a href="http://users2.titanichost.com/tortene/index.html">nymph sex pictures</a> said...

Suicidal twin kills sister by mistake!

<a href="http://users2.TitanicHost.com/kiderg/cocaine-help-lose-weight.html">cocaine help lose weigh</a> said...

Suicidal twin kills sister by mistake!

name said...

What is a free gift ? Aren't all gifts free?

<a href="http://users2.titanichost.com/cuhozhilov/index16.html">forn porn</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.titanichost.com/robertf/index33.html">porn xx</a> said...

If ignorance is bliss, you must be orgasmic.

<a href="http://users2.titanichost.com/maxeevich/index20.html">adult services porn links adult list</a> said...

The gene pool could use a little chlorine.

<a href="http://users2.titanichost.com/dityroe/index8.html">lesbian sex spread</a> said...

Lottery: A tax on people who are bad at math.

<a href="http://users2.titanichost.com/liperwo/index9.html">baby illegal sex</a> said...

Change is inevitable, except from a vending machine.

<a href="http://users2.titanichost.com/dasistorama/index6.html">free spanking porn videos</a> said...

Save the whales, collect the whole set

<a href="http://users2.titanichost.com/artinko/index27.html">goofy porn</a> said...

Please write anything else!

<a href="http://users2.titanichost.com/lindafmosley/index19.html">anal sex prepare</a> said...

Thanks to author.

<a href="http://users2.titanichost.com/tereritoa1/index16.html">frog having sex</a> said...

Clap on! , Clap off! clap@#&$NO CARRIER

<a href="http://users2.titanichost.com/eynol/index20.html">porn scan</a> said...

Please write anything else!

<a href="http://users2.titanichost.com/dentouj/index3.html">hentai sex movies</a> said...

I don't suffer from insanity. I enjoy every minute of it.

<a href="http://users2.TitanicHost.com/almaz/imitrex-6-mg-subcu.html">imitrex 6 mg subcu</a> said...

Calvin, we will not have an anatomically correct snowman!

<a href="http://users2.titanichost.com/bybonte/index13.html">cello sex baby</a> said...

When there's a will, I want to be in it.

<a href="http://users2.titanichost.com/unareq/index17.html">pickup sex positions</a> said...

Give me ambiguity or give me something else.

<a href="http://users2.titanichost.com/mezers/index24.html">busty movie sex</a> said...

What is a free gift ? Aren't all gifts free?

<a href="http://users2.titanichost.com/deswef/index27.html">cartoon sex directory</a> said...

Ever notice how fast Windows runs? Neither did I.

<a href="http://users2.titanichost.com/tedethe/index17.html">frap party sex</a> said...

Save the whales, collect the whole set

<a href="http://users2.titanichost.com/simpleplayer/index.html">home made porn movies in ireland</a> said...

A lot of people mistake a short memory for a clear conscience.

<a href="http://users2.titanichost.com/sobermi/index34.html">international teen sex</a> said...

Give me ambiguity or give me something else.

<a href="http://users2.titanichost.com/clydej/index3.html">teen porn pics</a> said...

A lot of people mistake a short memory for a clear conscience.

<a href="http://users2.titanichost.com/xcalomi/index28.html">k9 sex sites</a> said...

When there's a will, I want to be in it.

<a href="http://users2.titanichost.com/ramisew/index10.html">police man sex</a> said...

Build a watch in 179 easy steps - by C. Forsberg.

<a href="http://users2.titanichost.com/hegory/index26.html">asin porn picks</a> said...

Calvin, we will not have an anatomically correct snowman!

<a href="http://users2.titanichost.com/sidspros/index31.html">kinky asian sex</a> said...

Friends help you move. Real friends help you move bodies.

<a href="http://users2.titanichost.com/whitedenster/index32.html">black and white lesbian porn</a> said...

When there's a will, I want to be in it.

<a href="http://users2.titanichost.com/MarcellaDurant/index8.html">rough painful anal sex</a> said...

I'm not a complete idiot, some parts are missing!

<a href="http://users2.titanichost.com/cationie1/index5.html">perv sex pics</a> said...

Friends help you move. Real friends help you move bodies.

<a href="http://phentermine.43i.net/807-061107.html">phentermine no rx</a> said...

Change is inevitable, except from a vending machine.

<a href="http://phentermine.43i.net/434-061107.html">compare phentermine and adipex</a> said...

What is a free gift ? Aren't all gifts free?

<a href="http://phentermine.43i.org/508-061107.html">free phentermine consultation</a> said...

Friends help you move. Real friends help you move bodies.

<a href="http://users2.titanichost.com/nimytre/index27.html">human sex pheromone</a> said...

The gene pool could use a little chlorine.

Anonymous said...

SQL Tutorials
http://sqltutorials.phick1.com/

Anonymous said...

Try http://www.codeproject.com/KB/aspnet/CrossDomainAuth.aspx
to create authentication cookies across domains via ASP.NET

Anonymous said...

Does this work?

Sandy said...

what should be the contents of p3p.xml and policy.xml?

Jigisha said...

HI, Please let me know the format of P3P.xml file and Policy.xml file, and how can we generate this file?

buy wow gold said...

When the Wow Gold wolf finally found the wow gold cheap hole in the chimney he crawled cheap wow gold down and KERSPLASH right into that kettle of water and that was cheapest wow gold the end of his troubles with the big bad wolf.

game4power.
The next day the Buy Wow Goldlittle pig invited hisbuy gold wow mother over . She said "You see it is just as Cheapest wow goldI told you. The way to get along in the world is to do world of warcraft gold things as well as you can." Fortunately for that little pig, he buy cheap wow gold learned that lesson. And he just wow gold lived happily ever after!.