Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: session array not available in popup? Date: Mon, 13 Feb 2012 21:12:12 +0100 Lines: 39 Message-ID: <9pt94sFuf8U1@mid.individual.net> References: <68e1d7a7-3a12-4cb4-b43e-b96f3d5a14ca@qt7g2000pbc.googlegroups.com> <4b3bba57-105b-4618-8be7-3fd8e15e5c47@m3g2000pbi.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net NxcftRMOKl7YEPJmlWavhwpRh9S4T6r4ALNJeW+3Pokb0tCdZJ Cancel-Lock: sha1:Jiopit+lt6kfoFEcGHZujlUPRRI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20111226 Firefox/9.0.1 SeaMonkey/2.6.1 In-Reply-To: <4b3bba57-105b-4618-8be7-3fd8e15e5c47@m3g2000pbi.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:4805 cerr wrote: > On Feb 13, 11:30 am, Jerry Stuckle wrote: >> On 2/13/2012 2:21 PM, cerr wrote: >>> >> session_start(); >>> var_dump($_SESSION); >>> ?> >>> at the top of my popup script just prints >>> array(0) { } >>> and this is what the session dumps on the page from where I open the >>> popup: >>> string(2) "10" If you have used $_SESSION = "10"; then you haven't used the session as it's intended to work, try instead: $_SESSION['integer'] = 10; >> Is the popup accessing the same domain as the main window? > > Yes, they're both on the same domain, different directories tho but > that shouldn't matter, would it? Depends on your session.cookie_path See: http://www.php.net/manual/en/function.session-set-cookie-params.php http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path OT: Please remove things that you don't reply at, like signatures. -- //Aho