<?php
namespace frontend\controllers;
use Yii;
class IndexController extends \yii\web\Controller
{
public function actionSite(){
//设置session/*Yii::$app->session->set('name',666);var_dump($_SESSION);*///修改session/*Yii::$app->session['name']="CYG";var_dump($_SESSION);*/删除session/*Yii::$app->session->remove("name");var_dump($_SESSION);*/}}
增加:
修改:
删除: