Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

Could you point a way to make a Codeigniter view have a very long timeout?

Hi Experts

Could you point a way to make a Codeigniter view have a very long timeout?

This view maintains a dashboard open in a TV during a long time. This dashboard presents information from time to time by using code like:

 $.getJSON("survey_dashboard/get_totais", function (data) {
	$.each(data, function (g, grupo) {
		if (grupo.GRUPO == 'TOTAL') {
			total = grupo;
		} else if (grupo.GRUPO == 'ATIVO') {
			ativo = grupo;
		} else if (grupo.GRUPO == 'RECEPTIVO') {
			receptivo = grupo;
		} else if (grupo.GRUPO == 'VIVO') {
			vivo = grupo;

Open in new window


Open in new window

is a Controller function  that calls a SP

  public function get_totais() {

        $data = array();
        $data = $this->survey_model->new_get(array('query' => "CALL proc_pesquisa_totais()"));

Open in new window

Because an user first need to login the system to charge the dashboard-  this start countnig time,  after the timeout is reached the dashboard closes.

Does CI has a way to extend this time?

Thanks in advance
Avatar of Mukesh Yadav
Mukesh Yadav
Flag of India image

Here are many things that can affect the response time like indexes on the table you are using in queries.
Avatar of Eduardo Fuerte


In this case the only relevant aspect is the view timeout. The dashboard must not be closed.

The time used by DB search has no influence, since the dashboard must to remain opened all the time.
Avatar of Eduardo Fuerte
Eduardo Fuerte
Flag of Brazil image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's a matter of logic.
Simply doesn't maintain a view that couldn't be closed under security system.