Forum: Ruby on Rails Save a cookie with unescaped content

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Alisson S. (Guest)
on 2009-01-31 13:50
(Received via mailing list)
Hi, i'm trying to save a cookie with some especial characters like
this 'diasnd190823===??//<<asddas'

But rails escape this characters.

Anybody knows how can i do that?

I've tried this ways without success:

cookies['mycookie'] = {:value => 'diasnd190823===??//<<asddas'}

mycookie = CGI::Cookie::new('name' => 'mycookie', 'value' =>
respose.headers["cookie"] << mycookie

Alisson S.
This topic is locked and can not be replied to.