Re: Sessions /Cross Domain
| From: | Sascha Braun | Date: | Wed, 18 Sep 2002 18:19:35 +0000 |
| Subject: | Re: Sessions /Cross Domain | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116778@lists.php.net to get a copy of this message | ||
Normaly you store SESSION Data in variables.
When you make the step to another domain, you should reassign a new Session
and
give to data of the old session to the new one.
Or isn't is possible to put some date behind an url like
www.somedomain.com?check=it&out=mh
If you are working with databases you just have to take some values out of
your session,
like username and password, or some like this and find out, what data in the
database belongs
to this user (basket, or viewed artikels)
But you still need to work with one database for both servers, or write all
data to both databases
(Server1 & Server2)
Am I wrong are would this work out?
Sascha
----- Original Message -----
From: "David Buerer" <david@pladesigns.com>
To: <php-general@lists.php.net>
Sent: Wednesday, September 18, 2002 7:48 PM
Subject: RE: [PHP] Sessions /Cross Domain
> I do have control over the content of both domains...in fact right now
it's
> the identical content....even the same physical data store on the disk, I
> just seem to be losing session variables for one reason or another.
>
> DAvid
>
> -----Original Message-----
> From: Robert Cummings [mailto:robert.cummings@webmotion.com]
> Sent: Wednesday, September 18, 2002 11:06 AM
> To: David Buerer
> Cc: 'php-general@lists.php.net'
> Subject: Re: [PHP] Sessions /Cross Domain
>
>
> Domains are specific, and so you do not get the same sesion variables.
> here's are
> ways around this, but you need control of the content of both servers.
>
> Cheers,
> Rob.
>
> David Buerer wrote:
> >
> > Are sessions domain specific?
> >
> > What I mean is this.
> >
> > Suppose I have two websites:
> > secure.web.com
> > www.web.com <http://www.web.com>
> > and both web sites point to the same set of data.
> >
> > If I looking at web page http://www.web.com/index.html
> > <http://www.web.com/index.html> and have a set of
> > session variables
> defined
> > and then I call the page https://secure.web.com/index.html
> > <https://secure.web.com/index.html> do I still have
> > access to the same
> > session variables?
>
> --
> .-----------------.
> | Robert Cummings |
> :-----------------`----------------------------.
> | Webdeployer - Chief PHP and Java Programmer |
> :----------------------------------------------:
> | Mail : mailto:robert.cummings@webmotion.com |
> | Phone : (613) 731-4046 x.109 |
> :----------------------------------------------:
> | Website : http://www.webmotion.com |
> | Fax : (613) 260-9545 |
> `----------------------------------------------'
>