exists()) die($LANG['session_expired']."\n"); // Create a new solo share and set its arguments. $share = new SoloShare($memcache); $share ->setAdoptable(intval($_POST["ado"])) ->setHost($session) ->setExpirationTime($session->getExpirationTime()) ->save(); // Tell the session that it is posting to this share. $session->addTarget($share)->save(); $output = array( "OK", $share->getViewLink(), $share->getShareID() ); foreach ($output as $line) { echo $line."\n"; }