对不起,关于登录的这个任务还记得会话 在登录网页加载后决定
在我的登录控制器中 我把一个变量放到会话“session_Acc”
Session::put('session_Acc', $acc);
然后我想在登录后进入视图页面 可以使用吗?
<li>
<?php echo Session::get('session_Acc'); ?>
</li>
或应该使用
return Redirect::to('viewpage')->with(session_Acc', $session_Acc);
但即使使用Redirect,也可以获得会话session_Acc ,当我再次刷新网页时,Session什么都没有......
但太棒了,这个会话可以进入另一个注销控制器
我该怎么办?谢谢
答案 0 :(得分:0)
我明白了,使用Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'shelljs'
Loading "grunt-karma.js" tasks...ERROR
>> Error: Cannot find module 'log4js'
Running "cdnify:dist" (cdnify) task
Going through dist/404.html, dist/index.html to update script refs
✔ bower_components/angular/angular.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular.min.js
✔ bower_components/angular-animate/angular-animate.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-animate.min.js
✔ bower_components/angular-aria/angular-aria.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-aria.min.js
✔ bower_components/angular-cookies/angular-cookies.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-cookies.min.js
✔ bower_components/angular-messages/angular-messages.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-messages.min.js
✔ bower_components/angular-resource/angular-resource.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-resource.min.js
✔ bower_components/angular-route/angular-route.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-route.min.js
✔ bower_components/angular-sanitize/angular-sanitize.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-sanitize.min.js
✔ bower_components/angular-touch/angular-touch.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-touch.min.js
✔ bower_components/angular/angular.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular.min.js
✔ bower_components/angular-animate/angular-animate.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-animate.min.js
✔ bower_components/angular-aria/angular-aria.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-aria.min.js
✔ bower_components/angular-cookies/angular-cookies.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-cookies.min.js
✔ bower_components/angular-messages/angular-messages.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-messages.min.js
✔ bower_components/angular-resource/angular-resource.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-resource.min.js
✔ bower_components/angular-route/angular-route.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-route.min.js
✔ bower_components/angular-sanitize/angular-sanitize.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-sanitize.min.js
✔ bower_components/angular-touch/angular-touch.js changed to //ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.2/angular-touch.min.js
Done, without errors.
可以得到它