FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » session array not available in popup?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: session array not available in popup? [message #176986 is a reply to message #176985] Mon, 13 February 2012 19:37 Go to previous messageGo to previous message
cerr is currently offline  cerr
Messages: 33
Registered: September 2010
Karma:
Member
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"
>
>> Why is that? What's going on here, I seems to recall that i used this
>> before and it worked just fine - any clues?
>
>> Thank you!
>> Ron
>
> Are you outputting ANYTHING - including whitespace - before the call to
> session_start()?
No,

In both files, the first characters are:
<?php
session_start();

> 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?
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Space mistery
Next Topic: PHP 5.3.9 hex bug?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 11:49:26 GMT 2024

Total time taken to generate the page: 0.03677 seconds