CodeIgniter Forums
CodeIgniter 3.1.4-3.1.5 HTTP Session issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: CodeIgniter 3.1.4-3.1.5 HTTP Session issue (/thread-68684.html)



CodeIgniter 3.1.4-3.1.5 HTTP Session issue - nurmyrat - 08-12-2017

Hello Masters of CI.

TL;SR
(too long; should read) 

I have a small but interesting issue regardless of the versions of CI. 
Yesterday I downloaded v3.1.5, extracted and write a simple code ( https://www.tutorialspoint.com/codeigniter/codeigniter_basic_concepts.htm ) then executed. What I paid attention that the browser still continued to wait for the code to be executed, as if the HTTP Session still continues, but the code is over and I see text that I need to see. I tried the same example with v3.1.4 but here everything worked OK!. The Question IS: Is this OK! or there is something wrong?

I am a beginner so I do not know how to go after the bug and hunt it.

Thank you in advance


RE: CodeIgniter 3.1.4-3.1.5 HTTP Session issue - InsiteFX - 08-13-2017

For one it depends on what type of sessions you are running which you did not mention.

Are they database, file etc;


RE: CodeIgniter 3.1.4-3.1.5 HTTP Session issue - nurmyrat - 08-14-2017

No database, no file. Just this code

<?php
  class Test extends CI_Controller {  

     public function index() {
        echo "This is default function.";
     }
 
     public function hello() {
        echo "This is hello function.";
     }
  }
?>
What I mean by session: you enter a url and making an http request. Server (Apache 2.4  on windows machine in this case) responds to your request and closes the connection (https://developer.mozilla.org/en-US/docs/Web/HTTP/Session).

THE PROBLEM: When I try the same code from v3.1.4 it is executed OK (HTTP/1.1 200 OK) but for v3.1.5 it continues to wait for the session to close (like circling sign where the favicon resides on the browser).

Note: I do not use the "?>" sign for my files (as described in https://codeigniter.com/user_guide/general/styleguide.html#id5 ).


RE: CodeIgniter 3.1.4-3.1.5 HTTP Session issue - InsiteFX - 08-14-2017

This is an HTTP Session, the wait can be a number of things like the server waiting for a response etc;

Use you browsers development tools to see whats going on most is F12 key


RE: CodeIgniter 3.1.4-3.1.5 HTTP Session issue - rtenny - 08-14-2017

This could also be some external resource you are trying to load in 3.1.5.
Like some external JS, font files, css. The browser will wait for them to finish downloading even when the main request is already visiable on the screen.

In chrome tool use the "Network" tab to see t¡what the browser is waiting for.