src/Session.php
public function regenerate($destroy = false)
	{
		if ($this->sessionStore->regenerate($destroy))
		{
			setcookie
			(
				$this->sessionStore->getName(),
				$this->sessionStore->getId(),
				0,
				$this->path,
				$this->domain,
				$this->secure,
				true
			);

			return  true;
		}
		else
		{
			return false;
		}
	}
public function regenerate($destroy = false)
	{
		if ($this->sessionStore->regenerate($destroy))
		{
			setcookie
			(
				$this->sessionStore->getName(),
				$this->sessionStore->getId(),
				0,
				$this->path,
				$this->domain,
				$this->secure,
				true
			);

			return  true;
		}
		else
		{
			return false;
		}
	}
Method: regenerate
=========================================================================
When the session id is regenerated we need to reset the cookie.

Parameters:
-------------------------------------------------------------------------
- $destroy: If set to true the previous session will be deleted.

Returns:
-------------------------------------------------------------------------
boolean