setting session or cookie based on domain name

C

codeFlick

Hi All,

Here's my question...

I have multiple domains all pointing to the same generic dynamic
webpage. Depending on the domain used, I want to query my database and
retrieve certain display settings such as certain graphics, background
colors and so on...

What would be the best way to do this without using any redirects or
Request.ServerVariables(­"http_referer") or anything like that?

Is there any way it can be done server side or something really
completely transparent to the visitor.

Many Thanks
 
A

Aaron Bertrand [SQL Server MVP]

How about using Request.ServerVariables("HTTP_HOST")



Hi All,

Here's my question...

I have multiple domains all pointing to the same generic dynamic
webpage. Depending on the domain used, I want to query my database and
retrieve certain display settings such as certain graphics, background
colors and so on...

What would be the best way to do this without using any redirects or
Request.ServerVariables(­"http_referer") or anything like that?

Is there any way it can be done server side or something really
completely transparent to the visitor.

Many Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top