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/
精彩评论