>>I'm writing this in PHP5.
Fair enough, I guess I’ll be stopping to spruik the benefits of ASP.Net MVC
then.
>>The plan is to have a sub-domain for each client from where it will jump to
>>the "common" 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.
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?
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(".",$_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 ?!
Kind regards,
Stefan Müller,
R&D Manager
ORCL Toolbox Ltd.
Auckland, New Zealand
P Please consider the environment before printing this email
This message is intended for the adresse named above and may contain privileged
or confidential information.
If you are not the intended recipient of this message you must not use, copy,
distribute or disclose it to anyone.
From: [email protected]
[mailto:[email protected]] On Behalf Of John C
Sent: Monday, 1 August 2016 7:46 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Multi client website
Hi guys
Sorry for the delay getting back to you.
I'm writing this in PHP5.
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.
Any suggestions are very welcome.
Thanks
John
From: [email protected]
[mailto:[email protected]] On Behalf Of Leigh Wanstead
Sent: Monday, August 1, 2016 4:48 PM
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Multi client website
Hi John,
You really need to tell us which operating system you plan to use and which
programming language you plan to write.
There is no need to use cookie if you use apache.
Here is a url for your reading.
http://stackoverflow.com/questions/11523258/apache-map-single-subdomain-to-folder
Regards
Leigh
On 31 July 2016 at 13:42, John C <[email protected]> wrote:
Hi all
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).
The plan is to have a sub-domain for each client from where it will jump to the
"common" 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.
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).
Any ideas or suggestions of how to do this?
Thanks a lot in advance
John C
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with
Subject: unsubscribe
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with
Subject: unsubscribe