Last active
November 29, 2016 07:17
-
-
Save ayies128/6559ff6c64e6aa5d4f2ba19de11cdf02 to your computer and use it in GitHub Desktop.
codeigniter use session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ライブラリ宣言 | |
$this->load->library('session'); | |
$msg = 'セッションにおるぞい'; | |
// セッションに追加 | |
$this->session->set_userdata('zoi', $msg); | |
// セッションから取得 | |
$zoi = $this->session->userdata('zoi'); | |
// セッションにおるぞい | |
echo $zoi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment