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
Where
survey_dashboard/get_totais
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()"));
die(json_encode($data));
}
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