I am very new to Rails, heads up! I am required to use these versions for the time being:

Rails: 3.2.18

Ruby: 1.9.3-p194

Whenever I call a custom method `destroy_session` from a `link_to` button, it seems to be working fine. However, whenever I manually refresh the page `session[:session_token]` is cleared, as if the `destroy_session` method was called... I'm not sure why? 

If I completely remove the `<link_to>` button from the View, the `session[:session_token]` **remains intact as expected** no matter how many times I refresh the browser. Here's my current workflow to elaborate further:

* Click "Get Token" button makes an AJAX request and stores response in `session[:session_token]`
* The view is refreshed and the session token is written to the screen, as expected.
* If I hit refresh in the browser manually, the session token disappears as if I called the `destroy_session` method.

**View**
*/app/views/searches/index.html.erb*

```
<%= link_to 'Delete Token', action: destroy_session_path %>

```

**Controller**
*/app/controllers/searches\_controller.rb*

```
helper_method :destroy_session

def destroy_session
  session[:session_token] = nil
end

```

**Routes**
*/config/routes.rb*

```
resources :searches
match '/searches/destroy_session' => 'searches#destroy_session', :as => :destroy_session
post '/searches/get_token' => 'searches#get_token'
root :to => 'searches#index'

```

**$ rake routes**

```
          searches GET    /searches(.:format)                 searches#index
                   POST   /searches(.:format)                 searches#create
        new_search GET    /searches/new(.:format)             searches#new
       edit_search GET    /searches/:id/edit(.:format)        searches#edit
            search GET    /searches/:id(.:format)             searches#show
                   PUT    /searches/:id(.:format)             searches#update
                   DELETE /searches/:id(.:format)             searches#destroy
   destroy_session        /searches/destroy_session(.:format) searches#destroy_session
          ajax_sum POST   /ajax/sum(.:format)                 my#ajax_sum
searches_get_token POST   /searches/get_token(.:format)       searches#get_token
              root        /                                   searches#index

```

No errors or exceptions are thrown. Would someone please help me identify what I'm doing wrong here? Thank you very much!