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

  • SEARCH
  • Home
  • 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 6971125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:47:57+00:00 2026-05-27T16:47:57+00:00

I have a really special login feature in my app, so instead of plugins

  • 0

I have a really special login feature in my app, so instead of plugins I use my own code.

In my controller I have something like

def login
  ...
  session[:customer_id] = id
end

I use CookieStore (as default). So is it secure? What if somebody edit cookies? Can he impersonates somebody with another id?

  • 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-05-27T16:47:57+00:00Added an answer on May 27, 2026 at 4:47 pm

    A message digest is included with the cookie to ensure data integrity: a user cannot alter his user_id without knowing the secret key included in the hash. New apps are generated with a pregenerated secret in config/environment.rb. Set your own for old apps you‘re upgrading.

    See http://api.rubyonrails.org/v2.3.8/classes/ActionController/Session/CookieStore.html. Please also pay attention to this sentence :

    If you have more than 4K of session data or don‘t want your data to be visible to the user, pick another session store.

    In your situation, it certainly doesn’t matter and you can use CookieStore without fear.

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

Sidebar

Related Questions

What should i use to code Classic ASP under Linux. I have really tried
I have a controller which has some special authentication as it is really an
We’ve found that the unit tests we’ve written for our C#/C++ code have really
I would like to have a special listview with a title, couple of sub-categories,
i have a special question i really want to learn how to develop custom
I really like to study algorithms and optimize code (I try not to do
I'm trying to use instead of usual HttpWebRequest // get a login page HttpWebRequest
Most git repositories have a master branch, but there's really nothing special about this
I have really basic question. How can I get form id by input element
I have really no idea why I'm asking this as this a really completely

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.