Camera Error

WiredD

New Member
Aug 27, 2017
2
0
Does anyone know how to fix this?The index.php file in the camera folder is not able to close the session, so when I take a photo, it loads the previous photo
Code:
PHP Warning:  session_destroy(): Session object destruction failed in \camera\index.php on line 38

index.php
PHP:
<?phpinclude_once "Init.php";use Images\Image;use Images\Extractor\ImageExtractor;/*    Mod version    Stage 1: Planes        */session_start();$mode = "set"; // Set or getif(isset($_GET["mode"]))    $mode = $_GET["mode"];$content = file_get_contents("php://input");if($mode == "set"){    $_SESSION["picdata"] = $content;}else{    if(isset($_SESSION["picdata"]) && isset($_GET["name"]))    {        $image = new Image();        $overimg = new Image();                $image->SetImageFromContentString($_SESSION["picdata"]);                $overimg->SetImageFromFile("overmarks/logo1.gif");        //$overimg->Opacity(0.2);                $image->PasteImage($overimg, $image->width - $overimg->width - 10, 10);                $name = $_GET["name"];        $image->SaveAt("pictures/$name.png");                session_destroy();        header("Location: pictures/$name.png");        //header('Content-type: image/png');        //$image->ShowImage();    }    }

Line 38:
Code:
session_destroy();
 
UP
 

Users who are viewing this thread

Top