Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7841737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:09:48+00:00 2026-06-02T16:09:48+00:00

I am interested in deploying a Node.js along side my Rails application server. Just

  • 0

I am interested in deploying a Node.js along side my Rails application server. Just as a reference, I plan on using socket.IO to create a chat server, so users will be able to chat inside of my web application.

My current application uses Authlogic to authenticate users. I would like to ensure that only a user cannot read other users’ messages, so I will need to authenticate the user session somehow. My Node.js will have access to my database, and I know Rails can store the sessions inside of the database, so I would like to use this feature to authenticate chat users. The problem is, I have no idea how to go about doing that. I’m not even sure what information is present in the session, and I do not know how I can use this information to authenticate a user.

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:09:50+00:00Added an answer on June 2, 2026 at 4:09 pm

    The rails session is tricky to use from other languages: it’s just a serialised ruby object and pretty much the only documentation for the marshal format is the implementation/rubyspec.

    However authlogic doesn’t actually store anything in the session: it has a separate cookie (user_credentials by default, assuming your model is User)
    The data in that cookie is "#{user.persistence_token}::#{user.id}", so you should be able to easily verify this from your js code

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Interested in people's opinion. You have an application server running 3/4 services that do
Interested in using Sphinx for my application. Planning to install their latest version which
I'm interested in a protecting of my web application by using generation a csrf
Im interested in communicating from a ruby on rails app with a flex app.
I'm a .NET web developer and just bought a new Mac. I'm interested in
I run an instance of a rails application that is developed by another team.
Interested in listening in on general chat by Windows Phone 7 developers. Anyone know
I`m interested in using some MOSS dll's if my solution is deployed on MOSS.
I am interested in learning how to write extremely efficient network server software and
We're interested in deploying MongoDB, but we need to know if we can limit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.