Reading session cookies with javascript

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.

On Jan 26, 11:48pm, Pedro B. [email protected] wrote:

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs