码迷,mamicode.com
首页 > 其他好文 > 详细

Session not active, could not store state 的解决方法

时间:2014-12-09 22:51:40      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   sp   for   on   div   2014   

1、开口加上session_start() http://metah.ch/blog/2014/05/facebook-sdk-4-0-0-for-php-a-working-sample-to-get-started/

2、http://stackoverflow.com/questions/23501811/new-facebook-sdk-4-throw-exception-about-php-session-active-in-laravel 重写了两个方法:

protected function storeState($state)
    {
        Session::put(‘facebook.state‘, $state);
    }

    protected function loadState()
    {
        return $this->state =  Session::get(‘facebook.state‘);
    }

3、一个youtube的视频 https://www.youtube.com/watch?v=tRWlWuOWe8I

Session not active, could not store state 的解决方法

标签:blog   http   io   ar   sp   for   on   div   2014   

原文地址:http://www.cnblogs.com/argb/p/4154328.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!