Show session information in a view?

后端 未结 2 522
[愿得一人]
[愿得一人] 2021-02-02 09:37

How can you output the current session to the view?

相关标签:
2条回答
  • 2021-02-02 10:05

    <%= session.inspect %>

    0 讨论(0)
  • 2021-02-02 10:15

    To those reading, I found another answer that also seems to work: <%= debug session %>.

    0 讨论(0)
提交回复
热议问题