You can also add your custom handler. For example I will replicate the way
CakePHP handles sessions but leaving trans_sid ON (CakePHP deactivates it).
To do just that:
1. Create a file app/config/session_cake_use_trans_sid.php with:
<?php
if (function_exists('ini_set'))
{
ini_set('session.serialize_handler', 'php');
ini_set('session.use_cookies', 1);
ini_set('session.name', CAKE_SESSION_COOKIE);
ini_set('session.cookie_lifetime', $this->cookieLifeTime);
ini_set('session.cookie_path', $this->path);
ini_set('session.gc_probability', 1);
ini_set('session.auto_start', 0);
ini_set('session.save_path', TMP . 'sessions');
}
?>
2. On app/config/core.php change:
define('CAKE_SESSION_SAVE', 'php');
to:
define('CAKE_SESSION_SAVE', 'session_cake_use_trans_sid');
So you get the idea :)
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de mindcharger
Enviado el: Jueves, 08 de Marzo de 2007 05:21 a.m.
Para: Cake PHP
Asunto: Re: sessions problem
That particular define controls ao CAKE handles sessions...you have 3
choices:
* php -> CAKE uses PHP Session to store Session Data
* database -> CAKE uses DB to store Session Data
* cake -> CAKE uses a temp file to store Session Data
So, I think that NOT TELLING cake how you want it to handle the
Sessions is not a good ideia...
You really should pick an option from above and try it to make it
work, because you cannot tell how cake will behave if nothing is
defined as the place-holder for session data...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---