Re: session array not available in popup? [message #176987 is a reply to message #176986] |
Mon, 13 February 2012 20:04 |
cerr
Messages: 33 Registered: September 2010
Karma:
|
Member |
|
|
On Feb 13, 11:37 am, cerr <ron.egg...@gmail.com> wrote:
> On Feb 13, 11:30 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
>
>
>
>
>
>
>> On 2/13/2012 2:21 PM, cerr wrote:
>
>>> Hi There,
>
>>> 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"
<?php
session_start();
echo session_id();
Now I tried passing the session id along as a get variable and in my
pop up script it now says
<?php
session_start();
echo $_GET['sessionid']."<br/>";
session_id($_GET['sessionid']);
echo session_id();
?>
On top. I confirm that the session id gets set to the correct value
but I still can't retrieve my UserID value from the session variable.
Something seems to be majorly messed up... :(
|
|
|