You are here: Re: Access to the $_SESSION variable « PHP Programming Language « IT news, forums, messages
Re: Access to the $_SESSION variable

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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация