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 6339603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:40:42+00:00 2026-05-24T19:40:42+00:00

Motivation: I’m solving problems that are caused by strange/mutated/odd/perverse cookies in ruby-on-rails. I have

  • 0

Motivation: I’m solving problems that are caused by strange/mutated/odd/perverse cookies in ruby-on-rails. I have captured some of these evil cookies and I can use cookie manager on firefox to recreate the cookie state to replicate the problems. I want to write a rails page that will automate the task of setting these cookies.

Problem: If I change or delete the _myapp_session cookie in a rails controller, it issues me a new one. For example the following change to _myapp_session will never be seen by the user.

cookies[:_myapp_session] = 'abcedf'

I want to recreate the exact cookies for my domain that a user has including invalid or corrupted cookies. How can I get this low level with rails2?

  • 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-24T19:40:43+00:00Added an answer on May 24, 2026 at 7:40 pm

    It shouldn’t create a new one. Are the cookies of a different domain than the source domain of the page? If so, you can set the domain on the cookies by passing a block to the cookie -setter method.

    cookies[cookie_name] = {
        :value => 'your value',
        :expires => 1.week.from_now,
        :domain => 'sub.yourdomain.com'
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My motivation for chaining my class constructors here is so that I have a
motivation for this is that (rarely)I have a need to know that the input
I have a service that accepts callbacks from a provider. Motivation : I do
Well the motivation is the idea that a python test runner would have functionality
(Motivation: Consider a problem where you have to select a sports team from a
Motivation: I have fxcop integrated in the build process, which makes fxcopcmd.exe run each
motivation: I would like to create a utility class so that instead of having
EDIT: To explain my motivation for this, I'm writing a command-line utility that takes
Motivation: I have a function func(const string& s); { //... } of course this
My main motivation for trying to do this is to get Javascript that is

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.