[2] ErrorException in Session.php line 106

session_start(): Cannot send session cookie - headers already sent by (output started at D:\vhostroot\LocalUser\bgeccn\www\application\database.php:6)

  1. // 讀取session驅(qū)動(dòng)
  2. $class = false !== strpos($config['type'], '\\') ? $config['type'] : '\\think\\session\\driver\\' . ucwords($config['type']);
  3. // 檢查驅(qū)動(dòng)類
  4. if (!class_exists($class) || !session_set_save_handler(new $class($config))) {
  5. throw new ClassNotFoundException('error session handler:' . $class, $class);
  6. }
  7. }
  8. if ($isDoStart) {
  9. session_start();
  10. self::$init = true;
  11. } else {
  12. self::$init = false;
  13. }
  14. }
  15. /**
  16. * session自動(dòng)啟動(dòng)或者初始化
  17. * @return void

Call Stack

  1. in Session.php line 106
  2. at Error::appError(2, 'session_start(): Can...', 'D:\vhostroot\LocalUs...', 106, ['config' => ['id' => '', 'var_session_id' => '', 'prefix' => 'think', ...], 'isDoStart' => true])
  3. at session_start() in Session.php line 106
  4. at Session::init() in Session.php line 120
  5. at Session::boot() in Session.php line 138
  6. at Session::set('d2d977c58444271d9c78...', ['verify_code' => '133139f5d875d9556678...', 'verify_time' => 1768400727], '') in Captcha.php line 201
  7. at Captcha->entry('') in CaptchaController.php line 21
  8. at CaptchaController->index('')
  9. at ReflectionMethod->invokeArgs(object(CaptchaController), ['']) in App.php line 343
  10. at App::invokeMethod(['\think\captcha\Captc...', 'index'], ['id' => '']) in App.php line 470
  11. at App::exec(['type' => 'method', 'method' => ['\think\captcha\Captc...', 'index'], 'var' => []], ['app_host' => '', 'app_debug' => 1, 'app_trace' => false, ...]) in App.php line 139
  12. at App::run() in start.php line 19
  13. at require('D:\vhostroot\LocalUs...') in index.php line 37

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

t
92d7540e476b153862b4ea2356ede7b3
r
8148
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-7bdf4e2b-d72c-4c12-887c-b38443816a55
PHPRC
C:\php\php5.6\
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\bgeccn\bgeccn.config
APP_POOL_ID
bgeccn
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-GT8G0AJ00TQ
ComSpec
C:\Windows\system32\cmd.exe
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
8
OS
Windows_NT
Path
C:\Perl\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\dotnet\;D:\Program Files\mysql5.7.18\bin;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 61 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3d02
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
WIN-GT8G0AJ00TQ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/captcha.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
1
SERVER_PORT
443
SERVER_NAME
m.sapplication.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
D:\vhostroot\LocalUser\bgeccn\www\index.php
REQUEST_URI
/captcha.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
50284
REMOTE_HOST
172.87.201.106
REMOTE_ADDR
172.87.201.106
QUERY_STRING
PATH_TRANSLATED
D:\vhostroot\LocalUser\bgeccn\www\index.php\captcha.html
PATH_INFO
/captcha.html
LOGON_USER
LOCAL_ADDR
10.10.10.5
INSTANCE_META_PATH
/LM/W3SVC/211202894
INSTANCE_NAME
BGECCN
INSTANCE_ID
211202894
HTTPS_SERVER_SUBJECT
CN=m.sapplication.com
HTTPS_SERVER_ISSUER
C=CN, O=sslTrus, CN=sslTrus (RSA) DV CA
HTTPS_SECRETKEYSIZE
2048
HTTPS_KEYSIZE
256
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
D:\vhostroot\LocalUser\bgeccn\www
CONTENT_TYPE
application/x-www-form-urlencoded; Charset=UTF-8
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
D:\vhostroot\LocalUser\bgeccn\www\
APPL_MD_PATH
/LM/W3SVC/211202894/ROOT
IIS_UrlRewriteModule
7,1,1993,2336
UNENCODED_URL
/captcha.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/captcha.html
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
HTTP_REFERER
http://www.baidu.com
HTTP_HOST
m.sapplication.com
HTTP_COOKIE
t=92d7540e476b153862b4ea2356ede7b3; r=8148
HTTP_ACCEPT_LANGUAGE
zh-CN,zh
HTTP_ACCEPT_ENCODING
gzip, deflate
HTTP_ACCEPT
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded; Charset=UTF-8
HTTP_CONTENT_LENGTH
0
HTTP_CONNECTION
Keep-Alive
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/captcha.html
REQUEST_TIME_FLOAT
1768400727.0084
REQUEST_TIME
1768400727
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\vhostroot\LocalUser\bgeccn\www/application/
ADMINIMG
D:\vhostroot\LocalUser\bgeccn\www/public/static/admin/uploads/cateimg/
INDEXIMGS
D:\vhostroot\LocalUser\bgeccn\www/public/static/index/uploads/cateimg/
ADMIN_STATIC
D:\vhostroot\LocalUser\bgeccn\www/public/static/admin/
INDEXIMG
D:\vhostroot\LocalUser\bgeccn\www/public/static/index/uploads/img/
INDEXATT
D:\vhostroot\LocalUser\bgeccn\www/public/static/index/uploads/att/
INDEXAD
D:\vhostroot\LocalUser\bgeccn\www/public/static/index/uploads/ad/
APP_DEBUG
true
THINK_VERSION
5.0.24
THINK_START_TIME
1768400727.0103
THINK_START_MEM
155752
EXT
.php
DS
\
THINK_PATH
D:\vhostroot\LocalUser\bgeccn\www\thinkphp\
LIB_PATH
D:\vhostroot\LocalUser\bgeccn\www\thinkphp\library\
CORE_PATH
D:\vhostroot\LocalUser\bgeccn\www\thinkphp\library\think\
TRAIT_PATH
D:\vhostroot\LocalUser\bgeccn\www\thinkphp\library\traits\
ROOT_PATH
D:\vhostroot\LocalUser\bgeccn\www\
EXTEND_PATH
D:\vhostroot\LocalUser\bgeccn\www\extend\
VENDOR_PATH
D:\vhostroot\LocalUser\bgeccn\www\vendor\
RUNTIME_PATH
D:\vhostroot\LocalUser\bgeccn\www\runtime\
LOG_PATH
D:\vhostroot\LocalUser\bgeccn\www\runtime\log\
CACHE_PATH
D:\vhostroot\LocalUser\bgeccn\www\runtime\cache\
TEMP_PATH
D:\vhostroot\LocalUser\bgeccn\www\runtime\temp\
CONF_PATH
D:\vhostroot\LocalUser\bgeccn\www/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true