Reputation: 504
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
Upvotes: 1
Views: 667
Reputation: 1138
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.
Upvotes: 2
Reputation: 700342
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.
Upvotes: 1