Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Session not available when file is called by ajax

    I have an upload form, where my form action is something similar to this:
    upload.php?zenid=121eajdasdqwdjoiasjoa
    Inside the upload.php, I require application_top.php:
    require('includes/application_top.php');


    And somewhere in the file I use $_SESSION['customer_d']


    This works fine when I need use the upload form the normal way. However, when I try to pass the form data to upload.php using Ajax, the SESSION is not available.

    Any idea? I'm kinda ajax noob here.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    Jul 2008
    Posts
    9
    Plugin Contributions
    0

    Default Re: Session not available when file is called by ajax

    Have you tried to insert:

    session_start();

    at the beginning of your .php ajax file?

 

 

Similar Threads

  1. v155 [Done v155b] AJAX: Session-variable changes not saved
    By lat9 in forum Bug Reports
    Replies: 5
    Last Post: 18 Aug 2016, 12:20 PM
  2. AJAX Session Question
    By Davos in forum General Questions
    Replies: 0
    Last Post: 22 Feb 2011, 08:16 PM
  3. Ajax requests and session timeouts
    By lumpylumpy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 24 Dec 2010, 02:23 PM
  4. Replies: 1
    Last Post: 21 Apr 2010, 06:37 PM
  5. Zons shipping allowing checkout when not available
    By longstockings in forum General Questions
    Replies: 0
    Last Post: 10 Sep 2006, 01:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR