Why aren't my cookies writting? |
[eluser]dkindler[/eluser]
Would anyone happen to know why my program fails to write my cookies? Code: function login() { and Code: function check_global_password($global_password) { Thank you
[eluser]rthut[/eluser]
It just dies at the "die" statment ? How many results are returned from the table 'confidentials' ?
[eluser]dkindler[/eluser]
No, if the cookie doesn't write it executes the die statement. Im using that to debug. Only a single result is returned. Everything is working correctly, It's just not writting the cookie.
[eluser]rthut[/eluser]
Try to pass an array like this: Code: $cookie = array(
[eluser]Learn CodeIgniter[/eluser]
Code: secure => TRUE // is for https:// not http://
[eluser]rthut[/eluser]
[quote author="Learn CodeIgniter" date="1338771260"] Code: secure => TRUE // is for https:// not http:// Just copy/paste from the doc's: http://ellislab.com/codeigniter/user-gui...input.html
[eluser]dkindler[/eluser]
[quote author="rthut" date="1338771365"][quote author="Learn CodeIgniter" date="1338771260"] Code: secure => TRUE // is for https:// not http:// Just copy/paste from the doc's: http://ellislab.com/codeigniter/user-gui...input.html[/quote] Nope, still getting a faliure to write cookie... Here is my code now: Code: function login() {
[eluser]rthut[/eluser]
Is your app under an https connection ? if not, try to set secure => false
[eluser]Learn CodeIgniter[/eluser]
As I stated above the secure is only for a https:// connection Quote:secure php.net It should be set to FALSE. You can also use the Codeigniter cookie_helper
|
Welcome Guest, Not a member yet? Register Sign In |