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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:05:06+00:00 2026-05-28T07:05:06+00:00

I want the AuthComponent to use encrypted client-side cookies for easier scalability. So what

  • 0

I want the AuthComponent to use encrypted client-side cookies for easier scalability.

So what I did was copy /lib/Cake/Controller/Component/AuthComponent.php to app/Controller/Component/AuthComponent.php (I’m using CakePHP2), added Cookie to the
$components array, and replaced all instances of CakeSession with $this->Cookie (manually after proof-reading) making sure it was essentially just dumping things in the same format as default except on Cookies.

Here is the error I get: Fatal error: Using $this when not in object context in ...

Why is it not picking up $this as a Controller? I should be able to use one Component in another seamlessly. Is there any quick-hack to this using ClassRegistry or something?

  • 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-28T07:05:07+00:00Added an answer on May 28, 2026 at 7:05 am

    I want the AuthComponent to use encrypted client-side cookies for easier scalability.

    What is this supposed to mean? How exactly do cookies scale better than sessions?

    What you’re doing sounds like a bad idea. Cookies can only be so big, and you might now be storing sensitive information in plaintext on clients’ computers. How are you ‘encrypting’ your cookies?

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

Sidebar

Related Questions

I have a Posts and a Users controller. I use the Auth Component and
I am using the auth component but I don't want to use a username
I use the Auth component. I have an Ajax login form and I want
I am having trouble getting the Auth component do the redirects I want in
I'm using CakePHP's Auth component and it's in my app_controller.php . Now I want
I am using Auth component for user login and registration. I want to add
want to develop my project on Google App Engine .I want to use google
I have used Auth component in my cakephp site. I want to check whether
Want to use iconv() on each item in an array and store them to
Want to know what the stackoverflow community feels about the various free and non-free

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.