I'm developing a website that makes use of a simple login system. For some reason it won't keep any of the session or cookie's I'm trying to set.
First I tried setting Sessions using the Kohana method. After that didn't work I resorted to using the standard Session but that didn't work either.
Now I'm trying to set the cookies using Cookie::set('name', $value);
, but those won't save aswell.
I've checked using a cookie checker and it says there are 0 cookies, but my browser is not set to delete them or any other similar privacy settings.
The bottom of the bootstrap.php file reads:
Kohana_Cookie::$salt = md5('supersecretsalt');
Kohana_Cookie::$expiration = 1209600; // 14 days
Kohana_Cookie::$domain = 'theater';
I'm working with Kohana 3.3.
I've tried using Chrome, Firefox and Safari, so I'm almost 100% positive it's not caused by the browser.
Am I doing something wrong in the cookie settings?
I fixed it by replacing the code in bootstrap.php with Cookie::$salt = 'supersecretsalt';
Guess what I used was outdated for my version.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.