in reply to Eval and Exiting
would be enough of a test, as it is supposed to be an object, thus true, if set at all.if ($cookies{PHPSESSID}) {
I no longer see a reason for the eval wrapper, either, as there isn't much reason I can see for it to fail. Here's my version:
Untested, though.unless ($cookies{PHPSESSID}) { $query->redirect(-location=>$redirecturl."0"); exit; } $session = PHP::Session->new($cookies{PHPSESSID}->value); $id = $session->id;
|
|---|