Welcome Guest, Not a member yet? Register   Sign In
i have problem in session
#1

[eluser]nazarali[/eluser]
hiiiii
i have problem in codeigniter session when try to save arabic characters
the session lose data
in login page i write this code


$user_login =array(
'user_name' => $user_data->user_name ,
'password' => 'نزار علي نظر'
);
$this->session->set_userdata($user_login);
redirect( base_url('Home'));

whene in home page i try print password no data appear

echo $this->session->userdata('password');
$this->session->sess_destroy();
#2

[eluser]nazarali[/eluser]
pleas helllllp
#3

[eluser]InsiteFX[/eluser]
Make sure that your html header has the utf8 in it and also check your database charset=utf8 collate=utf8_unicode_ci or collate=utf8_general_ci. Another big problem is that your database maybe creating it in a different collation on creation.
#4

[eluser]nazarali[/eluser]
the problem appear when try echo session after redirect to another page
but i not have problem when echo in same page




Theme © iAndrew 2016 - Forum software by © MyBB