Re: maintaining session information
| From: | Vic Agnews | Date: | Thu, 16 Aug 2007 20:37:55 +0000 |
| Subject: | Re: maintaining session information | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260936@lists.php.net to get a copy of this message | ||
Thanks for the suggestions guys .... I appreciate the help! I guess I'll
look into creating a custom session handler. Any good references?
How my current setup works is, there's session information for
sub-domain1.domain.com stored in a cookie and I want
sub-domain2.domain.com(which currently does not have
authentication/sessions) to be able to read
that cookie and find out who the user is. I read somewhere that you could do
this either by using an apache module or .htaccess files or configuring
php.ini ...
- Vic
On 8/16/07, Chris <dmagick@gmail.com> wrote:
>
> Vic Agnews wrote:
> > is there a way we can maintain session information across two
> sub-domains
> > (on two different servers though) ... kinda like how google does it?
>
> Might have to use a 3rd party cookie & possibly a custom session handler.
>
> A cookie created on 'domain.com' cannot be read by any subdomains
> (including 'www.domain.com').
>
> A 3rd party cookie (on 'www.domain2.com') can be used in both cases and
> it's independent so shouldn't have a problem being read.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>