CodeIgniter Forums
session site&forum; - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: session site&forum; (/thread-21638.html)

session site&forum; - El Forum - 08-16-2009

I have an own made site.

And i have an forum from this forum, this ->

I want, if anyone login on my site, that will login forums too.

function verifyUser($u,$pw){
        $Q = $this->db->get('users');
        if($Q->num_rows() > 0){
            $row = $Q->row_array();
            $_SESSION['user_id'] = $row['id'];
            $_SESSION['id'] = $row['id'];
            $_SESSION['username'] = $row['username'];
            $this->session->set_flashdata('error', 'Hibás felhasználónév vagy jelszó!');

And in the install.txt - > "set your auth system to create $this->session->userdata('username') as the
username from the database, and $this->session->userdata('id') as the users
id, and $this->session->userdata('admin') for users that match an
administrative role."

What i need to do with this? help me please

session site&forum; - El Forum - 08-16-2009

i think you mast use and where function db