• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cookie encrypt.

#1
[eluser]Gabi3xz[/eluser]
I want to encrypt cookie
Code:
$cookie = array(
'name'   => 'gabi_cookie',
'value'  => $this->input->post('email_address'),
'expire' => '86500',
'domain' => '.localhost',
'path'   => '/',
'prefix' => '',
'secure' => FALSE
);  
$this->input->set_cookie($cookie);
What string encrypted?
I thought to use $this->encrypt->sha1(), but it can decrypt after?

#2
[eluser]InsiteFX[/eluser]
SEE: The CodeIgniter Users Guide - Encryption Class


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.