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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:36:56+00:00 2026-05-29T15:36:56+00:00

We are using Cakephp framework version 2.0.6 The site is supposed to allow an

  • 0
  1. We are using Cakephp framework version 2.0.6
  2. The site is “supposed” to allow an anonymous user to “add to cart.”
  3. We are using the session id (using cake’s native session class) to store the anonymous user’s information in a db table.
  4. When the user goes to checkout, then we want to ask “are you a current member? If so, click yes to login or no to create an account.“

ISSUE:

Regardless of what they choose, the user either then has to login, or create a new user/pass (and then login) which is causing cakephp to regenerate a session ID. This is making it impossible in the new session to grab what that user added to the cart when they were anonymous just 5 minutes prior. In other words, the anonymous user’s session id changes between when they are anonymous and after they login/create-user, making it impossible to identify their cart post-login.

Is there a way to prevent cakephp from regenerating a session in this scenario, or a better way to accomplish what we are trying to do while still keeping our order flow (ie: anonymous being allow to add to cart, before login/create)?

  • 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-29T15:37:01+00:00Added an answer on May 29, 2026 at 3:37 pm

    It is this reason that shopping carts are more often than not stored in Cookies. That way you can easily retrieve the saved information post-authentication.

    If you insist on using Sessions to store this data, consider setting your Security.level setting to ‘low’. That should prevent CakePHP from regenerating the session ID.

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

Sidebar

Related Questions

I'm developing a site using the CakePHP framework. I have a form which shows
I am using the CakePHP framework to implement a Web application. I would add
I am using cakephp framework to build my application. I want that, whenever a
I am using CakePHP framework with MySQL database and I have problem in saving
I just started using the CakePHP framework, 2.0 to be precise. I read most
I am using Cakephp as my framework. I have a problem in uploading my
I am working on a website build using cakephp framework. My problem is that
I am starting to develop a website using CakePHP for my framework, I've literally
I am using cakePHP framework to build a website in which I want to
I'm recoding an existing project by using the CakePHP framework. Now, in my existing

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.