
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
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
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.