2011-11-02 99 views
0

在一個CI應用程序使用會話它必須像這樣使用 $ config ['encryption_key'] =「something」 我可以使用沒有設置雙引號之間的任何內容。CodeIgniter會話encryption_key

回答

0

答案是否定的。如果你打開會話核心庫它有這樣的:

if ($this->encryption_key == '') 
{ 
    show_error('In order to use the Session class you are required to set an encryption key in your config file.'); 
} 

沒有真正的理由沒有它,所以我只是把它留在那裏。如果你願意,只要把它作爲一個字母,但即使這不是建議。