我的形式是這樣的:CURL是否銷燬會話?
<?php session_start();
// some variables
// entry into database with these variables
//then using curl to post those data to external site.
//and then refresh to another admin.php file after return curl.
在admin.php的文件。
//set up session key to a db value
// check. if false return to login page
但是,當刷新到admin.php然後會話不起作用。回到我的登錄頁面。 但是在curl之前添加所有的過程都沒問題。
所以我的問題是:curl
函數銷燬會話嗎?如果是,那麼我應該在curl返回後啓動session_start()
函數嗎?