Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show session information in a view?

How can you output the current session to the view?

like image 714
sscirrus Avatar asked Aug 12 '10 01:08

sscirrus


2 Answers

<%= session.inspect %>

like image 72
Jed Schneider Avatar answered Sep 23 '22 07:09

Jed Schneider


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

like image 24
sscirrus Avatar answered Sep 21 '22 07:09

sscirrus