Session vars in parent dir
Howdy all,
I have a login app that runs at:
DOCUMENT_ROOT/admin/index.php
and an AJAX action at:
DOCUMENT_ROOT/somefile.php
The login app and all the scripts based under the admin/ folder have no
problems, but the AJAX scripts don't know jack about any stinkin
$_SESSION var.
I can only presume this is an issue with the folder. I added this to
both the layout code and the Ajax handler script:
echo "<pre>"; print_r($_SESSION); echo "</pre>";
(with an exit() after that in the Ajax action handler)
And I get the full session explanation in the layout but I get
Array
(
)
from the Ajax script.
session_start() is being called as the first line of the Ajax script.
Any thoughts?
Nathan
.
Relevant Pages
- Re: YUI Libraries
... scenario where some bonehead decides he wants an "AJAX site" and simply ... Never thought I would see a 3200 line script to load dependent files though. ... What YUILoader appears to be for is loading dependent files and nothing more. ... I don't care to make a test case, but, if anybody is using it then you can possibly tell me how it deals with a case where it retrieves a document via AJAX that has script blocks in it. ... (comp.lang.javascript) - Re: IFRAME & AJAX ; point me out
... Well 'to AJAX or not to AJAX' that is the question I was asking my self. ... Do I realy need AJAX and when I saw a script developed with javascript and that the script created an ActiveX object, ... After being defribillated :-) I thought of remote scripting using an IFRAME, after all I read a lot about how to do this and I tried to give it a shot. ... (comp.lang.javascript) - Re: [PHP] Closing a connection to browser without exiting the script
... I think the Ajax solution that John suggests is the ticket. ... My solution was to print the please wait message to the screen, while accessing the database using an Ajax call. ... I used Perl for my server-side script, but if you prefer PHP you can create a CGI script using PHP and run the same process as your original PHP page. ... (php.general) - Re: Gzip and Ajax
... builds the form, presumably it buffers all screen data and gzips it, ... When the second script is called by Ajax it sends no ... pictures linked in tags!) and has its own headers, ... (comp.lang.php) - Re: Javascript Library
... inserting them in a container element via innerHTML and then proclaiming ... All in the name of having an "Ajax site." ... Last function I posted to attempt to deal with script execution? ... var isIE = false; ... (comp.lang.javascript) |
|