Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I've got a problem with sessions and AJAX request.

In my module I've got AJAX request, that runs 3 times. And do:

function my_ajax_request(){

if(!isset($_SESSION['set_info']))
{
    $_SESSION['set_info'] = array();
}

$_SESSION['set_info'][] = array(
        'oid' => $oid,
        ...

But when I try to access $_SESSION['set_info'] from another module I've go ONLY LAST data from LAST request (1 record in array). All other data is gone. How can I fix it?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.