<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:#002060;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&gt;&gt;I'm writing this in PHP5.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Fair enough, I guess I’ll be stopping to spruik the benefits of ASP.Net MVC then. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&gt;&gt;The plan is to have a sub-domain for each client from where it will jump to the &quot;common&quot; pages on the main domain. The index file on each sub.domain identifies the client and therefore define the directory path to use for the images and the CSS file.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Circling back to your original questions, is the jumping around sub/top domain really needed? .. or are you just looking for a way to display content from the main-domain inside your clients subdomain?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If all you want is to display global common pages within your clients pages then all this talk about sessions and cookies maybe isn’t really needed .. the solution might be as easy as just having some code such as array_shift((explode(&quot;.&quot;,$_SERVER['HTTP_HOST'])));  to figure out the current requested subdomain URL and depending on that you then can serve the correct content (clients pictures/css/data/custompages/etc) … all handled from within your main domain ?! <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'><br><br></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Kind regards,<br><br></span><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Stefan Müller</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>,<br>R&amp;D Manager</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><br><br></span><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:white;background:red'>ORCL</span></b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Toolbox Ltd.</span></b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> <br></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Auckland, New Zealand</span><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> <o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.0pt;font-family:Webdings;color:#777777'><br>P</span><span style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#777777'>&nbsp;Please consider the environment before printing this email<br><br>This message is intended for the adresse named above and may contain privileged or confidential information.<br>If you are not the intended recipient of this message you must not use, copy, distribute or disclose it to anyone.<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> delphi-bounces@listserver.123.net.nz [mailto:delphi-bounces@listserver.123.net.nz] <b>On Behalf Of </b>John C<br><b>Sent:</b> Monday, 1 August 2016 7:46 p.m.<br><b>To:</b> 'NZ Borland Developers Group - Delphi List'<br><b>Subject:</b> Re: [DUG] Multi client website<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'>Hi guys<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'>Sorry for the delay getting back to you.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'>I'm writing this in PHP5.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'>The suggestion using sessions may be a problem when a user is on a page, goes away for a relatively long time, the session times out and a page refresh will not work correctly.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'>Any suggestions are very welcome.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'>John <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-NZ style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#002060'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:delphi-bounces@listserver.123.net.nz">delphi-bounces@listserver.123.net.nz</a> [<a href="mailto:delphi-bounces@listserver.123.net.nz">mailto:delphi-bounces@listserver.123.net.nz</a>] <b>On Behalf Of </b>Leigh Wanstead<br><b>Sent:</b> Monday, August 1, 2016 4:48 PM<br><b>To:</b> NZ Borland Developers Group - Delphi List<br><b>Subject:</b> Re: [DUG] Multi client website<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-NZ><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span lang=EN-NZ>Hi John,<o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-NZ><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ>You really need to tell us which operating system you plan to use and which programming language you plan to write.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ>There is no need to use cookie if you use apache.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ>Here is a url for your reading.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ><a href="http://stackoverflow.com/questions/11523258/apache-map-single-subdomain-to-folder">http://stackoverflow.com/questions/11523258/apache-map-single-subdomain-to-folder</a><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ>Regards<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-NZ>Leigh<o:p></o:p></span></p></div></div><div><p class=MsoNormal><span lang=EN-NZ><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span lang=EN-NZ>On 31 July 2016 at 13:42, John C &lt;<a href="mailto:jc@sunshinesoftware.co.nz" target="_blank">jc@sunshinesoftware.co.nz</a>&gt; wrote:<o:p></o:p></span></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>Hi all</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>&nbsp;</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>I have a website what will be available to the public but specific for more than one clients. The frame work of the website will be the same for each client but their images and CSS file will be different (making it look differently).</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>The plan is to have a sub-domain for each client from where it will jump to the &quot;common&quot; pages on the main domain. The index file on each sub.domain identifies the client and therefore define the directory path to use for the images and the CSS file.</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>I was thinking of doing this with cookies for the paths to be used in the main program, but I'm not sure it would be a good plan and if that will work properly (setting a cookie from within a sub.domain to be used in the main domain).</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>&nbsp;</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>Any ideas or suggestions of how to do this?</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>&nbsp;</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif"'>Thanks a lot in advance</span><span lang=EN-NZ><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif";color:#888888'>John C</span><span lang=EN-NZ style='color:#888888'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-NZ style='font-family:"Arial","sans-serif";color:#888888'>&nbsp;</span><span lang=EN-NZ style='color:#888888'><o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-NZ><br>_______________________________________________<br>NZ Borland Developers Group - Delphi mailing list<br>Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-NZ><o:p>&nbsp;</o:p></span></p></div></div></body></html>