Home  >  Q&A  >  body text

session question, thank you for answering it.

{$Think.session.userinfo.id} and {$Think.session.userinfo.is_update}, these two data are not in my session, nor are they in my printout. May I ask why? I currently hard-code the ID and is_update directly into the session in the Login controller.

不喜欢吃糖不喜欢吃糖2499 days ago2361

reply all(6)I'll reply

  • 云忘红尘

    云忘红尘2018-06-16 10:33:34

    Do you still have the frontend template for this tutorial? When I downloaded the Crazy Website, it was removed due to copyright issues.

    reply
    0
  • 不喜欢吃糖

    some

    不喜欢吃糖 · 2018-08-09 22:30:01
  • 宏宏

    宏宏2018-03-23 17:57:01

    There is an error in the teacher's login.php when saving the session. It should be Session::set('user_info',$admin->toArray());

    reply
    2
  • 百度郝郝

    After changing it, all the fields in the session are now available. Thank you.

    百度郝郝 · 2018-05-13 15:40:53
  • 韦小宝

    韦小宝2018-01-08 09:35:38

    Did you write the id and is_update into the session while logging in?

    reply
    0
  • 不喜欢吃糖

    The problem was solved after I wrote it. It seems that the teacher didn’t write the video tutorial.

    不喜欢吃糖 · 2018-01-08 09:37:32
  • Cancelreply