Reading session cookies with javascript

63 views
Skip to first unread message

Pedro Bernardes

unread,
Jan 26, 2011, 6:48:51 PM1/26/11
to rubyonra...@googlegroups.com
There is a way to read cookies set by rails session ?

I mean, regular cookies are easy to read, but i'm having a hard time trying to read those set by sessions.

Thanks in advance.

Frederick Cheung

unread,
Jan 27, 2011, 2:53:40 AM1/27/11
to Ruby on Rails: Talk
By default those cookes are marked as httponly which means that
javascript on the page can't read them. I think you can change this in
the same place as other session options

Fred
Reply all
Reply to author
Forward
0 new messages