Monthly Archives: March 2013

My cPanel page was misconfigured with CloudFlare and had a strange IP on ‘Last Login From’

Today I’v logged in on my cPanel and is was misconfigured.

First thoughts was about cPanel had performed a bad update to cPanel from my hosting company (we always try to put the problems on the others), but then I’v logged in in a different account, in this case with no CloudFlare and I’v realised that the issue was caused by CloudFlare.


Continue reading My cPanel page was misconfigured with CloudFlare and had a strange IP on ‘Last Login From’

How to close session when browser is closed, in CodeIgniter?

We are building a small app for a non-lucrative, and we are using sessions on it – who doesn’t use it? -.
We need that when some user closes the browser the session must be destroyed.

This is how its done.

Open the geral config file application/config/config.php, search for $config[‘sess_expiration’]

$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close']	= FALSE;
$config['sess_encrypt_cookie']	= FALSE;
$config['sess_use_database']	= FALSE;

Change 7200 for -1. You should got something like

$config['sess_expiration'] = -1;

That should do the work! šŸ™‚