List Info

Thread: cookies? sessions? help?




cookies? sessions? help?
country flaguser name
Germany
2007-06-27 15:18:05
say i wanted for a user to go to http://www.domain.com/int
ro when they
first hit http://www.domain.com/

subsequent visits to the site while still on the current
session would
result in just going to http://www.domain.com/

basically the user only sees www.domain.com/intro once, and
only once...
unless they explicitly put in the '/intro' manually.

thoughts? ideas? links? tutorials?

-- 
Posted via http://www.ruby-forum.com
/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: cookies? sessions? help?
country flaguser name
Germany
2007-06-28 02:57:20
the user hits /intro for the first time in the site, or for
the first 
time per session? if you want him to see /intro for the
first time 
entering the site, and the next week when he comes to visit
your site, 
you don't want him to see it, you should probably cookie
him.
if not, session is the way to go.

and in the controller you've routed the homepage to, just do
a 
before_filter to the homepage action, and add a if
session[:visited?] 
clause or something like that to do a redirect.

good enough?

-- 
Posted via http://www.ruby-forum.com
/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )