Note that there are some explanatory texts on larger screens.

plurals
  1. POcakePHP "session" is not returning session ID
    primarykey
    data
    text
    <p>I am into development of a cakePHP based web application.</p> <p>Here are my core.php settings for session handling </p> <pre><code> Configure::write('Session.save', 'database'); /** * The name of the table used to store CakePHP database sessions. * * 'Session.save' must be set to 'database' in order to utilize this constant. * * The table name set here should *not* include any table prefix defined elsewhere. */ Configure::write('Session.table', 'cake_sessions'); /** * The DATABASE_CONFIG::$var to use for database session handling. * * 'Session.save' must be set to 'database' in order to utilize this constant. */ //Configure::write('Session.database', 'default'); Configure::write('Session.start', true); /** * The name of CakePHP's session cookie. */ Configure::write('Session.cookie', 'CAKEPHP'); /** * Session time out time (in seconds). * Actual value depends on 'Security.level' setting. */ Configure::write('Session.timeout', '300'); /** * If set to false, sessions are not automatically started. */ Configure::write('Session.start', true); /** * When set to false, HTTP_USER_AGENT will not be checked * in the session */ Configure::write('Session.checkAgent', true); /** * The level of CakePHP security. The session timeout time defined * in 'Session.timeout' is multiplied according to the settings here. * Valid values: * * 'high' Session timeout in 'Session.timeout' x 10 * 'medium' Session timeout in 'Session.timeout' x 100 * 'low' Session timeout in 'Session.timeout' x 300 * * CakePHP session IDs are also regenerated between requests if * 'Security.level' is set to 'high'. </code></pre> <p>CakePHP session id is always blank. although other session read/write activities are working perfectly fine.</p> <p>Below is the session object.</p> <pre><code>SessionComponent Object ( [__active] =&gt; 1 [__started] =&gt; [__bare] =&gt; 0 [valid] =&gt; [error] =&gt; Array ( [2] =&gt; Auth.redirect doesn't exist ) [_userAgent] =&gt; 2abebfb51fc971ec64569f7cd415fe0b [path] =&gt; / [lastError] =&gt; 2 [security] =&gt; high [time] =&gt; 1278950154 [sessionTime] =&gt; 1278953154 [watchKeys] =&gt; Array ( ) [id] =&gt; [_log] =&gt; [host] =&gt;localhost [enabled] =&gt; 1 [cookieLifeTime] =&gt; 0 ) </code></pre> <p>All the other session variable are stored and retrieved properly, the problem is I am not getting session id at any stage.</p> <p>Can you please help me what can be problem.</p> <p>Thanks, Sourabh</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload