1

I have one dome name. www.abc.com

and i want to speedup all images an d static content from cookies domain.

what i require to do with that?

i want to create new sub domain with name static.abc.com but that time also cookie coming with both domain.

i am user dotnet panel for hosting.

technology is .net

AjmeraInfo
  • 506
  • 3
  • 10
  • 25

2 Answers2

2

There are two ways to accomplish this. You could set the cookie for FQDN (fully-qualified domain name) of www.abc.com, but this would restrict the cookies to just www.abc.com. This may be stricter than you want.

The more common solution it to register a completely separate domain for cookieless hosting. This is used by many websites already.

  • Google uses gstatic.com
  • Facebook uses twimg.com (I think)
  • Yahoo uses yimg.com (I think)
  • EBay uses ebaystatic.com
  • etc.
Eadwacer
  • 1,138
  • 7
  • 10
1

When you create a cookie, set it's Domain property to ".abc.com", that way the cookie will be shared by both the www.abc.com and static.abc.com subdomains.

Guffa
  • 687,336
  • 108
  • 737
  • 1,005
  • 1
    i don't want to cookie shared with other or static domain. – AjmeraInfo Dec 19 '10 at 19:36
  • @AjmeraInfo: Then I misunderstood the question. If you don't want to share the cookies then you simply avoid setting the `Domain` property. – Guffa Dec 19 '10 at 23:29