Welcome Guest, Not a member yet? Register   Sign In
One week the session open to expire is secure
#4

(This post was last modified: 01-13-2016, 09:46 AM by meow.)

I cant remember where I learned it, but I use:

PHP Code:
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

class 
Myclass extends CI_Controller
{
    private 
$logged_in

then in the construct
PHP Code:
$this->logged_in = ($this->session->userdata('signed_in')) ? TRUE FALSE

So, as soon as user is logged in, I set a sessiondatapiece signed_in = 1
Reply


Messages In This Thread
RE: One week the session open to expire is secure - by meow - 01-13-2016, 09:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB