Sha256: 60183f02ec687b91a6e40a5611ebf891a43bddd825be1e4fadef40ccc2ee3eda

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

Rails.application.routes.draw do
  get "/cookieless" => "cookieless#index", as: :root
  get "/cookieless/redirect" => "cookieless#redirect_to_root", as: :redirect_to_root
end


class ApplicationController < ActionController::Base
end


class CookielessController < ApplicationController
  include CookielessSessions::EnabledController

  protect_from_forgery with: :exception

  def index
    session[:useless] = :content

    render text: "CookielessController#Index\r\nSession-Key: '#{session_key}'\r\nSession-ID: '#{session_id}'\r\n"
  end

  def redirect_to_root
    redirect_to root_url
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cookieless_sessions-1.0.0 spec/support/cookieless_controller.rb