Unable to maintain session over different pages

6 views
Skip to first unread message

Mubin Khalid

unread,
Jun 9, 2014, 10:38:27 PM6/9/14
to codei...@googlegroups.com
Hi
using following code to create a session and it works fine just before redirect, but after redirect, userdata is null/washed.
$data = array('username' => $this->input->post('username'),
        "is_logged_in" => "true",
        "time" => time()
        );
        $this->session->set_userdata($data);
        redirect("site/users");
Reply all
Reply to author
Forward
0 new messages