Why is my CSRF token empty when using Form::open()?

后端 未结 5 1254
滥情空心
滥情空心 2021-02-15 17:38

I am just starting out so please forgive me. I have a solid grasp on CodeIgniter, so I understand what is going on. However, I am noticing that my CSRF token is empty w

5条回答
  •  旧巷少年郎
    2021-02-15 17:56

    If you have a login page and you want to clear out the session using:

    Session::flush();
    

    Don't forget that this also cleans out the csrf token before it can be put in the view

提交回复
热议问题