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 UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
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)