The Cookie class handles your cookie (obviously) and your remember me function. There's not much to it. You can change your cookie name and how long it exists before expiring in core/init.php

Cookie.php

If you copy and paste this code, please get rid of the spaces or @ symbols before the opening php tag.


<@?php
class Cookie {

	public static function exists($name){
		return (isset($_COOKIE[$name])) ? true : false;
	}

	public static function get($name){
		return $_COOKIE[$name];
	}

	public static function put($name, $value, $expiry){
		if (setcookie($name, $value, time() + $expiry, "/")) {
			return true;
		}
		return false;
	}

	public static function delete($name){
		self::put($name, '', time() - 1);
	}
}