警告:session_start()[function.session-start]:open()失败:没有这样的文件或目录

时间:2017-07-26 18:20:47

标签: php ajax forms

我在网站顶部收到此警告。有人可以为我提供有关如何解决此问题的详细解决方案。

警告:session_start()[function.session-start]:open(/ home / content / 58/7146558 / tmp / sess_g6kr1vkvtfv14ht3hu268issv2,O_RDWR)失败:没有这样的文件或目录(2 / home / content / 58 /第63行的7146558 / html / upload / include / fgcontactform.php

以下是代码:

    function FGContactForm()
{
    $this->receipients = array();
    $this->errors = array();
    $this->form_random_key = 'HTgsjhartag';
    $this->conditional_field='';
    $this->arr_conditional_receipients=array();
    $this->fileupload_fields=array();

    $this->mailer = new PHPMailer();
    $this->mailer->CharSet = 'utf-8';
}

function EnableCaptcha($captcha_handler)
{
    $this->captcha_handler = $captcha_handler;
    session_start();
}

1 个答案:

答案 0 :(得分:0)

你应该设置会话路径.in php.ini文件:

session.save_path = "/path/to/your/folder"

否则,您可以使用:

ini_set(session.save_path, '/path/to/your/folder')