Welcome Guest, Not a member yet? Register   Sign In
my cookie doesn't set
#1

the link to view my code
please if anyone know what is wrong let me know also i have set the cookie in the auto loader
i don't know what should i do next and for the login check this what i do <?php


Code:
<?php
if((get_cookie('email') && get_cookie('password'))){
  $email = get_cookie('email');
  $password = get_cookie('password');
  echo "<script>
  document.getElementById('email').value = '$email';
  document.getElementById('password').value = '$password';
  </script>";
}
?>
Reply
#2

(This post was last modified: 06-27-2022, 12:11 AM by InsiteFX. Edit Reason: spelling error )

You should never store any type of sensitive information like passwords in a cookie!
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(06-27-2022, 12:11 AM)InsiteFX Wrote: You should never store any type of sensitive information like passwords in a cookie!

but ofc i'm going to encrypt it and when i wanna check it i will decrypt it i know how to do this in php and pdo but i don't know how to do this with codeigniter
Reply




Theme © iAndrew 2016 - Forum software by © MyBB