Programming : 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:
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
yup, correct.
you create P3p on the domain that you keep cookies
Thanks for article!
Thanks for interesting article.
Glad to read articles like this. Thanks to author!
Excellent website. Good work. Very useful. I will bookmark!
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 ?
PSg33b You have a talant! Write more!
Oz1Y83 Hello all!
o8cHZP The best blog you have!
tKk04R Nice Article.
actually, that's brilliant. Thank you. I'm going to pass that on to a couple of people.
Hello all!
Hello all!
Magnific!
Hello all!
Wonderful blog.
Nice Article.
Nice Article.
Please write anything else!
8VUIjz write more, thanks.
Nice Article.
Magnific!
Hello all!
Please write anything else!
Magnific!
Good job!
Thanks to author.
Hello all!
Good job!
Wonderful blog.
Hello all!
Thanks to author.
Please write anything else!
If ignorance is bliss, you must be orgasmic.
Energizer Bunny Arrested! Charged with battery.
640K ought to be enough for anybody. - Bill Gates 81
What is a free gift ? Aren't all gifts free?
Build a watch in 179 easy steps - by C. Forsberg.
Oops. My brain just hit a bad sector.
Nice Article.
Please write anything else!
I'm not a complete idiot, some parts are missing!
Please write anything else!
Build a watch in 179 easy steps - by C. Forsberg.
Friends help you move. Real friends help you move bodies
Magnific!
Wonderful blog.
640K ought to be enough for anybody. - Bill Gates 81
What is a free gift ? Aren't all gifts free?
Beam me aboard, Scotty..... Sure. Will a 2x10 do?
Magnific!
Suicidal twin kills sister by mistake!
Suicidal twin kills sister by mistake!
What is a free gift ? Aren't all gifts free?
Build a watch in 179 easy steps - by C. Forsberg.
If ignorance is bliss, you must be orgasmic.
The gene pool could use a little chlorine.
Lottery: A tax on people who are bad at math.
Change is inevitable, except from a vending machine.
Save the whales, collect the whole set
Please write anything else!
Thanks to author.
Clap on! , Clap off! clap@#&$NO CARRIER
Please write anything else!
I don't suffer from insanity. I enjoy every minute of it.
Calvin, we will not have an anatomically correct snowman!
When there's a will, I want to be in it.
Give me ambiguity or give me something else.
What is a free gift ? Aren't all gifts free?
Ever notice how fast Windows runs? Neither did I.
Save the whales, collect the whole set
A lot of people mistake a short memory for a clear conscience.
Give me ambiguity or give me something else.
A lot of people mistake a short memory for a clear conscience.
When there's a will, I want to be in it.
Build a watch in 179 easy steps - by C. Forsberg.
Calvin, we will not have an anatomically correct snowman!
Friends help you move. Real friends help you move bodies.
When there's a will, I want to be in it.
I'm not a complete idiot, some parts are missing!
Friends help you move. Real friends help you move bodies.
Change is inevitable, except from a vending machine.
What is a free gift ? Aren't all gifts free?
Friends help you move. Real friends help you move bodies.
The gene pool could use a little chlorine.
SQL Tutorials
http://sqltutorials.phick1.com/
Try http://www.codeproject.com/KB/aspnet/CrossDomainAuth.aspx
to create authentication cookies across domains via ASP.NET
Does this work?
what should be the contents of p3p.xml and policy.xml?
HI, Please let me know the format of P3P.xml file and Policy.xml file, and how can we generate this file?
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!.
Post a Comment