Well...im still not able to solve this..
im making my login page redirect to an action where i use as layout a
blank page with this code:
<?php
print_r($_SESSION);
?>
and i get :
Array ( [Config] => Array ( [rand] => 1301800827 [time] => 1166721008
[userAgent] => 5775c78b808060a9b312c8682121643e ) )
which makes me almost completely sure that my landing page uses
session handling..
If before "$this->redirect('mylandingpage-in-the-same-drectory');" on
my users controller in login action i write :
print_r($_SESSION);exit;
im able to get all the data needed for obauth..but if i dont exit
there and let it redirect to my "print_r($_SESSION);" page, the user
group password etc disappears..
the most frustrating is that it was working last night before i went
to sleep :)
any help would be appreciated.
:uic
On 12/21/06, Ismael S. Kafeltz <[EMAIL PROTECTED]> wrote:
This problem occurs in my PC and in the webserver where the site is
hosted. I don't think that's related to the server.
I just can't believe how a html file would crash php core.
It seems very unliktely to me as wel that an HTML file could crash
PHP. Besides, it's not a crash really, is it? It's more like your
code is not generating the desired output.
Setting aside the "background=white" stuff, it sounds to me like the
next page in the chain (meaning the page that you land on after
logging in) is not capturing the session at all. If you don't
explicitly make sure that you are using session handling on every page
(I know others will correct me if I'm wrong) then of course you're not
going to have session data show up on the next page.
So, are you 100% sure that the "landing page" that you go to after
logging in is configured to work with an existing session? Showing us
some code is the 100% guaranteed way to diagnose this problem.
Redirects to a page that is not configured to be using a session is
100% guaranteed to not be able to read session data.
Hope that helps.
--
Chris Hartjes
"The greatest inefficiencies come from solving problems you will
never have."
-- Rasmus Lerdorf
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---