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 evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

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

    There's not nearly enough information to go on here.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  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 evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    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
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. [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
  2. session problem How to create when login
    By mayurbhuva in forum Ext: Q&A
    Replies: 2
    Last Post: 18 Aug 2011, 9:04 PM
  3. 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

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
  •