|
Posted by wombat on 01/23/07 09:20
In article <8e234$45b3ab95$8259c69c$21164@news1.tudelft.nl>,
"Rik" <luiheidsgoeroe@hotmail.com> wrote:
> wombat wrote:
> > In article <54555$45b2c877$8259c69c$9783@news1.tudelft.nl>,
> > "Rik" <luiheidsgoeroe@hotmail.com> wrote:
> >> wombat wrote:
> >>> The site is in a subdomain. However, to eliminate some of the
> >>> problems
> >>> I've had I link everything through http://www.***.com/home/index.php
> >>> instead of using http://home.***.com/index.php.
> >>>
> >>> Are sessions url dependent? If so, is there a work-around?
> >>
> >> Cookies are host dependant (with an optional path).
> >> home.*.com is not the same host as www.*.com
> >>
> >> I'd say I'm interested what the 'certain problems' were that you had
> >> to use this contruction, it may be easier to fix those :-)
> >
> > The main problems I had occurred when I tried to create a "base" html
> > link to my site using:
> >
> > $base="http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
> >
> > This way anytime I wanted to redirect back to the same page, all I
> > would need to do is:
> >
> > href="$base"
> >
> > That created problems with the home subdomain. So I simply used the
> > following instead:
> > $base="http://www.*.com/home/index.php";
>
> Please explain the exact nature of the problem, because I don't get it. As
> long as you're on a subdomain, $_SERVER['HTTP_HOST'] is correct, and I see
> no reason to jump domain... Maybe are more detailed flow of you intentions
> are in other: on what page/domain are your visitors doing what exactly?
Sorry, been busy with work. 4AM and just getting home after 12 hours...
as soon as I can (as soon as I wake up that is) I'll go through what's
happening.
Navigation:
[Reply to this message]
|