nette/nette — pull request #486 by lm (2012-01-23 09:47:54+00:00)
Title: Session::exists() does not work with changed session_name

```php
$session->setOptions(array('name' => 'mysessid'));
var_dump($session->exists());
$session->start();
```

Even after refreshing page output is false, because Sesssion::exists() is checking for cookie named PHPSESSID instead of myssesid.

There is alternative fix https://github.com/lm/nette/commit/a6fe3963bda6e5bc76ed3894978bb24b09accf24.