|
Posted by Kimmo Laine on 09/04/06 10:13
<bartdlr@gmail.com> wrote in message
news:1157364019.917110.100550@i42g2000cwa.googlegroups.com...
> Hi,
>
> I got a problem to access the $_SESSION variable in my script.
>
> I wrote some login code: if the user logs in with his name and password
> a user object is stored in the $_SESSION variable.
>
> This all works fine , i can correctly read from that variable later on.
>
> I have an old version of my site under a domain name and the new site
> under another
> domain name.
> I wanted to link the domain name of the old site to the new one, but i
> ain't got the data of that domain name (user name and password) so i
> can't directly link it to the new site.
>
> The 2 versions of the sites are also on different webspaces.
>
> So i created a new index page on the old site. This page has a simple
> frame in it wich loads the index of the new site, so far no problem,
> but when i try to login it seems as if the $_SESSION variable is never
> used.
>
> Is this possible, and does anyone have an explication for this or a
> solution?
I'm not sure if this is the problem, but I'd like to point out that session
data is available only for pages under a certain domain. You can't share
session data between example.com and domain.net . (It wouldn't be very
secure if you could)
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net || Gedoon-S @ IRCnet || rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|