Read more

How to access your Rails session ID

Arne Hartherz
April 10, 2013Software engineer at makandra GmbH

This only works when you actually have a session ID (not the case for Rails' CookieStore, for example):

request.session_options[:id]
# => "142b17ab075e71f2a2e2543c6ae34b94"
Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Note that it's a bad idea to expose your session ID, so be careful what you use this for.

Posted by Arne Hartherz to makandra dev (2013-04-10 15:36)