Forum: Ruby on Rails google preference feature?

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.
C3bdd57da4de3560baac7b267eb32012?d=identicon&s=25 green (Guest)
on 2007-06-13 17:28
I want the feature as same as google preference. it does not require
visitors to register, just select a preference, for instance, a city,
next time, when the same user who uses the same computer visits my
website, he may be redirected the each city page automatically. how can
I do it? thanks in advance.
89d78e746b33ada16c8c6014ce986f36?d=identicon&s=25 Fernando Faganello Madeira (Guest)
on 2007-06-13 18:11
(Received via mailing list)
I don´t know how but I think a cookie can do that works...

2007/6/13, green <>:
C3bdd57da4de3560baac7b267eb32012?d=identicon&s=25 surfman (Guest)
on 2007-06-14 05:23
I have the same feature requirement. After checking google, I believe
cookie may do the task.

But my question is, although I may use set cookie and get cookie to do
something. when a user closes his browser, all the setting will be
cleaned. so, when the user re-visit the site, he has to re-set cookie

I have no idea on how to write cookie to disk and get it back when I
need it.

I am expecting anyone who has experiences on my problem may help me out.


Fernando Faganello Madeira wrote:
> I don´t know how but I think a cookie can do that works...
> 2007/6/13, green <>:
This topic is locked and can not be replied to.