Welcome Guest, Not a member yet? Register   Sign In
session site&forum;

I have an own made site.

And i have an forum from this forum, this -> http://codeigniter.com/wiki/Forum_writte...deIgniter/

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

Messages In This Thread
session site&forum; - by El Forum - 08-16-2009, 02:48 PM
session site&forum; - by El Forum - 08-16-2009, 03:22 PM

Theme © iAndrew 2016 - Forum software by © MyBB