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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:10:13+00:00 2026-06-18T08:10:13+00:00

CakePhp saves session id in cookies, normally cookie named CAKEPHP contain session id and

  • 0

CakePhp saves session id in cookies, normally cookie named CAKEPHP contain session id
and in any other php file can start session with that id

session_id($_REQUEST['CAKEPHP']);
session_start();

my question is this a secure way of handling session id, if yes then how is it secure if now what is better solution

  • 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-18T08:10:14+00:00Added an answer on June 18, 2026 at 8:10 am

    The session cookie will only be valid for the same domain that generated the cookie/started the session.

    Although it will be possible for another php page to pick-up that session, it will only receive the cookie if it is served on the same domain, in which case it is ‘part’ of your website.

    This should therefore not be a problem, because (unless you have a serious problem) only you will be able to add/upload php files to your website.

    You should check where the session DATA is saved though. The default ‘php’ session settings in app/Config/core.php will write the session data to the session save path that is configured in php.ini. This may be a ‘shared’ directory that is accessible by other websites on the same server.

    For better security, set the session configuration in app/config/core.php to ‘cake’. This will write the session data to app/tmp/sessions which should only be accessible by your website.

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

Sidebar

Related Questions

My cakephp is not loading any css,js. i uncommented the line Configure::write('App.baseUrl',env('SCRIPT_NAME')); in core.php.
One of the things I like with cakePhp, is that we can easily have
CakePHP Newbie :) I am having trouble accessing another controller and passing that data
For CakePHP errors I know that there exists CakeError and AppError solutions. But I
I am using CakePHP 2.1 and trying to upload files into server. I can
Hey guys, I'm working on a cakephp app that manages a list of alpha
This is CakePHP 1.3 I have a 5-step order form that stores the new
CakePHP is driving me nuts! Here is my code: if($this->Page->save($datavalue)) { $this->Session->setFlash('Page content updated
I have a cakephp object (SecurityPerson) that has a few foreign key relationships to
I have a simple cakephp form WITH validation that submits to a database. It

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.