开发者

declaring your own session instead of session maintained by codeigniter

开发者 https://www.devze.com 2023-02-01 17:57 出处:网络
Is there any way to define your own session instead of session mainta开发者_如何学运维ined by codeigniter ?$_SESSION[\'my_session_variable\'] = \'this is my session variable content\';

Is there any way to define your own session instead of session mainta开发者_如何学运维ined by codeigniter ?


$_SESSION['my_session_variable'] = 'this is my session variable content';

You'd use session this way if you want to.


You could use a native session variable as Thorpe showed, but using the native session library gives you a nice codeigniter-esque interface to work with sessions including flash data and so on.

http://codeigniter.com/wiki/Native_session/

0

精彩评论

暂无评论...
验证码 换一张
取 消