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’
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! 🙂
Edit (or before rename config.sample.inc.php to config.inc.php) and add the following lines to it
$sessionDuration = 60*60*24*7; // 60*60*24*7 = one week
$cfg['LoginCookieValidity'] = $sessionDuration;
Well, on the functions.php of your theme find where the custom type post is created.
'hierarchical' => false,
'menu_position' => 5,
'exclude_from_search' => true,
'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments')
On supports array you need t add comments to it.