]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/concerns/session_methods.rb
display an encouragement to contribute after many anonymous notes
[rails.git] / app / controllers / concerns / session_methods.rb
index 2cfc4e82311e642635308ad32717fa3c0664ff63..4bbfac34f6dff3305b576e343a6e119e95784249 100644 (file)
@@ -39,6 +39,8 @@ module SessionMethods
     session[:fingerprint] = user.fingerprint
     session_expires_after 28.days if session[:remember_me]
 
+    cookies.delete :_osm_anonymous_notes_count
+
     target = referer || url_for(:controller => :site, :action => :index)
 
     # The user is logged in, so decide where to send them: