Re: session array not available in popup? [message #177005 is a reply to message #176984] |
Wed, 15 February 2012 17:34 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma:
|
Senior Member |
|
|
El 13/02/2012 20:21, cerr escribió/wrote:
> I have a session in my main window. Freom here, I want to open a
> popup, load a page and access the $_SESSION[] array but I seem not
> able to in my pop up.
> <?php
> 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"
>
> Why is that? What's going on here, I seems to recall that i used this
> before and it worked just fine - any clues?
$_SESSION is an array, not a string, so the funny thing is that it's
only working as expected in the popup window :)
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|