
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
UrlSession stores your session in memcache (dalli), puts session_id to every url and parses it in midleware
$ gem install url_session
Add gem to your Gemfile
gem 'url_session'
configure session_store to use url_session (session_store.rb)
UrlSessionExample::Application.config.session_store :url_session_store, :namespace => 'sessions',
:key =>"_session", :compress => true, :expire_after => 1.day, :cookie_enabled => false, :param => 'session_id'
and include UrlSession in your ApplicationController
class ApplicationController < ActionController::Base
include ControllerAuthentication
protect_from_forgery
include UrlSession::Controller
end
You can put your all routes in session_id scope, if you want (routes.rb)
scope "/(:session_id)" do
resources :sessions
resources :users
resources :posts
...
match '/' => 'posts#index', :as => :root # root :to => 'posts#index' doesn't work here
end
The same like dalli_store plus:
:param => 'PHPSESSID' # name of session id parameter, default 'session_id'
:cookie_enabled => false # try to use cookie before url, default true
FAQs
Unknown package
We found that url_session demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.