Results 1 to 4 of 4

Thread: Ext modern causes each ajax call to create new http session

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jul 2015
    Posts
    25

    Exclamation Ext modern causes each ajax call to create new http session

    Ext modern causes each ajax call to create new http session!
    Please fix ASAP,this is very bad!

  2. #2
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    Please see: https://www.sencha.com/forum/showthr...o-report-a-bug

    There's not nearly enough information to go on here.

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2015
    Posts
    25

    Default

    Quote Originally Posted by evant View Post
    Please see: https://www.sencha.com/forum/showthr...o-report-a-bug

    There's not nearly enough information to go on here.
    Execute Ext.Ajax.
    Debug server (without any code beside session.getid) and watch session id.
    Session id is different every time.

  4. #4
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    What makes you think it's an Ext problem vs a server issue? What if you make an XHR request without the framework?

    Code:
    var oReq = new XMLHttpRequest();
    oReq.addEventListener("load", function() {
    });
    oReq.open("GET", "myurl");
    oReq.send();
    Anyway, I can't reproduce it. Using 6.2.0, my client code is:

    Code:
    Ext.onReady(function() {
        setInterval(function() {
            Ext.Ajax.request({
                url: '../../data.php',
                success: function(response) {
                    console.log(response.responseText);
                }
            });
        }, 1000);
    });
    Server code:
    Code:
    <?php
    session_start();
    echo session_id();
    ?>
    It logs the same session id, see the attached screenshot.

    Sounds like you have a configuration issue with your server.
    Attached Images Attached Images

Similar Threads

  1. Replies: 4
    Last Post: 4 Dec 2015, 9:22 AM
  2. [INFOREQ] treeStore (with session) should use the session to create records
    By christophe.geiser in forum Ext 5: Bugs
    Replies: 1
    Last Post: 29 Jun 2015, 7:06 AM
  3. session problem How to create when login
    By mayurbhuva in forum Ext: Q&A
    Replies: 2
    Last Post: 18 Aug 2011, 9:04 PM
  4. Create & Call JavaScript Function From Within The Ajax Page!
    By jaggybala in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 6 Dec 2008, 4:53 AM
  5. reducing jason data size at http request/Ajax call
    By mxu in forum Sencha Ext JS Q&A
    Replies: 1
    Last Post: 28 Aug 2008, 2:00 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •