Cake creates a new session. Check PHP session_name('identifier') function.
Check config/core.php file. You will find CAKE_SESSION_STRING constant. Copy the parameter into application script in "myfolder" like this: session_name('your identifier from cake'); session_start(); This way your application will use the same session. On 9 Oct, 20:40, CakeMan <[EMAIL PROTECTED]> wrote: > Hi Friends, > > i am in a bit of trouble. Here is my directory sturture :- > > htdocs->app,cake.....( all cakephp's files/directories ) , myfolder > > I am creating a session in one of the file in myfolder and wants to > use those session variables in cake's files. > > Now i have creted an session in Cakephp's files and in my folder's > files . I use print_r($_SESSION) in both the files after setting the > session arrays/variables. > > In cakephp's file it is showing something like this > > Array ( [Config] => Array ( [userAgent] => 64892a71606f6c52f1cb727cca > [time] => 119125 [rand] => 148796990 ) [Message] => Array ( ) [User] > => Array ( [id] => 9 [lname] => somevalue [fname] => Brar [mname] => > Singh [phone] => 9814 [email] => [EMAIL PROTECTED] [password] => > 4be626b8f336ae04a99d1 [verified] => 1 [verification_text] => 10208df5 > [description] => ) ) > > IN myfolder's file it is showing like this > > Array ( [User] => Array ( [id] =>10 [lname] => r [fname] => r [mname] > => [email] => [EMAIL PROTECTED] [phone] => [verified] => 1 ) ) > > we are using GLOBAL variable SESSION for same domain, so i think > print_r($_SESSION) should show the same values, same session arrays in > both the files ( myfolder's files and cakephp's file ) > > Please help me out to sort out this problem. > > I want to access myfolder's created sessions in cakephp's sessions. > > It's urgent !! > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---