Re: CakePHP 3 Alpha 2 - Unit testing as authed, session problems

2014-08-19 Thread Aki Foudila
The workaround worked indeed, though left me with other problems, but that's another topic. Opened the issue here: https://github.com/cakephp/cakephp/issues/4313 tiistai, 19. elokuuta 2014 11.02.54 UTC+3 José Lorenzo kirjoitti: > > This looks like bug, could you please open a ticket in github de

Re: CakePHP 3 Alpha 2 - Unit testing as authed, session problems

2014-08-19 Thread José Lorenzo
This looks like bug, could you please open a ticket in github describing the problem? As a workaround, before calling testAction(), do this: $articles->Auth->session = new \Cake\Network\Session(); On Tuesday, August 19, 2014 9:26:29 AM UTC+2, Aki Foudila wrote: > > I am trying to make tests for

CakePHP 3 Alpha 2 - Unit testing as authed, session problems

2014-08-19 Thread Aki Foudila
I am trying to make tests for the blog tutorial in the cookbook. Recently I've been stuck and trying to solve my problem with testing as authed users. Here is my test code: /** * Tests wheter you can edit article with unauthorized user. * * @return void */ public func

Re: Session Problems due to browserconfig.xml

2014-02-10 Thread AD7six
On Monday, 10 February 2014 15:03:43 UTC+1, Thyagarajan Delli wrote: > > Hi All, > > We noticed a strange behavior where users reported that their session is > timing out abruptly. On debugging the issue, we found the following > behavior. > > When the user keeps working on different sections o

Session Problems due to browserconfig.xml

2014-02-10 Thread Thyagarajan Delli
Hi All, We noticed a strange behavior where users reported that their session is timing out abruptly. On debugging the issue, we found the following behavior. When the user keeps working on different sections of the application, the same CAKEPHP session id is being send as a part of the header

Re: CakePHP & Facebook Session problems

2013-01-09 Thread Mathias R
hi, did you solved this problem? i have same error now and i don't know how to fix it. greetings m. Am Sonntag, 19. August 2012 00:38:19 UTC+2 schrieb ianjofriel: > > Hi > > Im currently developing an app in Cake 2.2.1, with Facebook integration > via the official Facebook SDK. > > When a user

CakePHP & Facebook Session problems

2012-08-18 Thread ianjofriel
Hi Im currently developing an app in Cake 2.2.1, with Facebook integration via the official Facebook SDK. When a user logs in, I have a few functions in AppController.php to attempt to get the logged in users details via the facebook->api('/me'); method in a try...catch block, which allows me

Re: Session problems

2010-04-27 Thread jgonca
Problem solved... But I don't know why exactly... :s On Apr 27, 1:38 pm, jgonca wrote: > How did you solve your problem? What were you doing wrong? > > I'm experiencing the same problem, even after reading the guide and > making the appropriate changes in the code... :s > > On Apr 11, 7:15 pm, Ed

Re: Session problems

2010-04-27 Thread jgonca
How did you solve your problem? What were you doing wrong? I'm experiencing the same problem, even after reading the guide and making the appropriate changes in the code... :s On Apr 11, 7:15 pm, Ed Propsner wrote: > Murphy was certainly right this time :) > > On Sun, Apr 11, 2010 at 2:13 PM, Za

Re: Session problems

2010-04-11 Thread Ed Propsner
Murphy was certainly right this time :) On Sun, Apr 11, 2010 at 2:13 PM, Zaky Katalan-Ezra wrote: > > Nothing is more stupid then not asking. > > As in Murphy low: A minute after you ask the silly question you will find > the answer. > > Check out the new CakePHP Questions site http://cakeqs.org

Re: Session problems

2010-04-11 Thread Zaky Katalan-Ezra
Nothing is more stupid then not asking. As in Murphy low: A minute after you ask the silly question you will find the answer. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to

Re: Session problems

2010-04-11 Thread Ed Propsner
Yes, I read it over a few times already and made the appropriate changes. I did figure out what I was doing wrong and to save face I won't elaborate but suffice it to say "bonehead" hardly sums it up. :) On Sun, Apr 11, 2010 at 4:47 AM, Zaky Katalan-Ezra wrote: > > Did you read > 11.1 Migrating f

Re: Session problems

2010-04-11 Thread Zaky Katalan-Ezra
Did you read 11.1 Migrating from CakePHP 1.2 to 1.3 http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 Especially the paragraph about SessionHelper & SessionComponent Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

Session problems

2010-04-11 Thread Ed Propsner
I feel a little silly for having to ask this but I switched over to Cake 1.3 and since then it's not recognizing any session data. Pages that output session data report that Session is undefined. I'm sure I'm overlooking something simple and obvious and I'll probably want to crawl under a rock once

Re: Session problems on redirect

2008-03-06 Thread Novice Programmer
$this->log('Got the user'); > > > > } > > > > else { > > > > $this->log('No Session Yet'); > > > > } > > > > > > > Thanks. > > > > > > >

Re: Session problems on redirect

2008-03-06 Thread b logica
'); > > > } > > > else { > > > $this->log('No Session Yet'); > > > } > > > > > Thanks. > > > > > On Mon, Mar 3, 2008 at 9:43 PM, Novice Programmer < > > > > [EMAIL PROTECTED]> wrote: >

Re: Session problems on redirect

2008-03-06 Thread Novice
'); > > } > > > Thanks. > > > On Mon, Mar 3, 2008 at 9:43 PM, Novice Programmer < > > [EMAIL PROTECTED]> wrote: > > > > Hello, > > > > using activate does not resolve the issue and i dont know that why i > > > would need

Re: Session problems on redirect

2008-03-03 Thread Novice Programmer
t; would need to call activate since activate is a turned on in core.php. > > Any other suggestions? > > > > Thanks. > > > > > > On Mon, Mar 3, 2008 at 9:43 AM, abiram <[EMAIL PROTECTED]> wrote: > > > > > > > > Hai u use session->activa

Re: Session problems on redirect

2008-03-03 Thread Novice Programmer
activate since activate is a turned on in core.php. Any other > suggestions? > > Thanks. > > > On Mon, Mar 3, 2008 at 9:43 AM, abiram <[EMAIL PROTECTED]> wrote: > > > > > Hai u use session->activate function > > also see > > http://groups.goog

Re: Session problems on redirect

2008-03-03 Thread Novice Programmer
function > also see > http://groups.google.co.in/group/cake-php/browse_thread/thread/75946ff8f12cd51e/78961c398cc3621a?hl=en#78961c398cc3621a > > On Mar 3, 2:58 am, "Novice Programmer" <[EMAIL PROTECTED]> > wrote: > > Hello, > > > > I am faci

Re: Session problems on redirect

2008-03-02 Thread abiram
Hai u use session->activate function also see http://groups.google.co.in/group/cake-php/browse_thread/thread/75946ff8f12cd51e/78961c398cc3621a?hl=en#78961c398cc3621a On Mar 3, 2:58 am, "Novice Programmer" <[EMAIL PROTECTED]> wrote: > Hello, > > I am facing session

Re: Session problems on redirect

2008-03-02 Thread b logica
at yet. > > I'm using cake_1.2.x.x_24.01.2008, btw. > > > > On Sun, Mar 2, 2008 at 4:58 PM, Novice Programmer > <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I am facing session problems on redirection. The function session->read() > &

Re: Session problems on redirect

2008-03-02 Thread b logica
me. I guess I'll try adding 'www' with mod_rewrite and see what happens. It looks like the problem is in Router::url() but I haven't finished wading through that yet. I'm using cake_1.2.x.x_24.01.2008, btw. On Sun, Mar 2, 2008 at 4:58 PM, Novice Programmer <[EMAIL PRO

Session problems on redirect

2008-03-02 Thread Novice Programmer
Hello, I am facing session problems on redirection. The function session->read() returns nothing on the session stored before redirection. I searched on the google and found some solutions one of them was modifying htaccess which i can't do because of shared host. Another was to put sessi

Re: Session problems with external application

2008-02-18 Thread Chris Hartjes
On Feb 18, 2008 8:46 AM, rafael bonifaz <[EMAIL PROTECTED]> wrote: > > On Feb 17, 2008 2:42 PM, francky06l <[EMAIL PROTECTED]> wrote: > > > > When are you loosing session, I mean which way .. CakeApp => phpApp or > > reverse ? > > > phpApp => CakePHP Well, if your CakePHP app and your regular PHP

Re: Session problems with external application

2008-02-18 Thread rafael bonifaz
On Feb 17, 2008 2:42 PM, francky06l <[EMAIL PROTECTED]> wrote: > > When are you loosing session, I mean which way .. CakeApp => phpApp or > reverse ? > phpApp => CakePHP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Session problems with external application

2008-02-17 Thread francky06l
When are you loosing session, I mean which way .. CakeApp => phpApp or reverse ? On Feb 16, 5:34 pm, "rafael bonifaz" <[EMAIL PROTECTED]> wrote: > We have a problem that we have to share a session between cakephp and > a pure php application. Php is configure to use the session of php so > that t

Session problems with external application

2008-02-16 Thread rafael bonifaz
We have a problem that we have to share a session between cakephp and a pure php application. Php is configure to use the session of php so that the session can be share between php and the external application. Some how we loose the session and it is something unpredicatble. Do you know where I

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-08 Thread Davide
Martin Schapendonk wrote: > > On 1/8/08, Davide <> wrote: >> I've also tried with security HIGH, MEDIUM and LOW but none of them >> works. When I get back to 1.1.18 everything is ok. > > This may be trivial, but the setting is case sensitive. Did you try > high, medium and low as well? Yes, I did

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-08 Thread Martin Schapendonk
On 1/8/08, Davide <[EMAIL PROTECTED]> wrote: > I've also tried with security HIGH, MEDIUM and LOW but none of them > works. When I get back to 1.1.18 everything is ok. This may be trivial, but the setting is case sensitive. Did you try high, medium and low as well? Martin -- Martin Schapendo

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-08 Thread Davide
Martin Schapendonk wrote: > CAKE_SECURITY set to high also means that Cake checks the referer and > drops the session if it believes it is being tampered with. I have the same problem but from 1.1.18 to 1.1.19. In 1.1.18 everything works out well, in 1.1.19 not. In the authentication procedure I

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-08 Thread Martin Schapendonk
On 1/7/08, beetlejuice <[EMAIL PROTECTED]> wrote: > the data i wrote into the session when user successfully logged in are > no longer available in the next page. > > do you have an idea ? CAKE_SECURITY set to high also means that Cake checks the referer and drops the session if it believes it is

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2008-01-07 Thread beetlejuice
Hello, did you resolve your session issues ? i saw your bug report was set to invalid, but with no explaination. i'm just following a basic tuto with login and session (Cook up Web sitesfast withCakePHP part3) and i'm stuck. the data i wrote into the session when user successfully logged in are

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2007-12-05 Thread robechar
I've had the same problem, and I think the problem was in the fix for ticket #3133. Session IDs are regenerated with every page request, however it isn't carrying over the data with that new session id. Therefore all session information is being lost with each page request. I've added a ticket f

Re: session problems with cake 1.18 and CAKE_SECURITY=high?

2007-11-21 Thread keymaster
Saw this note from phpnut in bug #3507 on trac: = Added id() to Session helper and component to return current Session id, the component accepts a $id parameter to force setting the Session id which must be called in a Controller::beforeFilter(). Sessions id are not longer renewed if

session problems with cake 1.18 and CAKE_SECURITY=high?

2007-11-21 Thread keymaster
Anyone experiencing any problems with session vars in cake 1.18? I have an app which has been working solidly for almost a year, since 1.11, through all the cake releases until 1.17. When I upgraded to 1.18, all of a sudden on some of my ajax requests, the call to $this->Session->check('myVar')

Re: Session problems

2007-11-14 Thread Brian
So if first_name is not in the session what is [first_name]=>Brian in the array that I dump to the screen? Am I looking at that wrong? It's in the array why can't I get to it? FULL ARRAY: Array ( [Config] => Array ( [userAgent] => cbc2e74d1e45abcccfdc85ca016f6426 [time] => 1194988565 [rand] =>

Re: Session problems

2007-11-13 Thread francky06l
Seems first_name is not in your session but $this->Session- >read('User.username') must be in. On Nov 13, 11:28 pm, Brian <[EMAIL PROTECTED]> wrote: > From within my controller if I print the entire session: > $this->Session->read() > It returns: > Array ( [Config] => Array ( [userAgent] => > c

Re: Session problems

2007-11-13 Thread Brian
From within my controller if I print the entire session: $this->Session->read() It returns: Array ( [Config] => Array ( [userAgent] => cbc2e74d1e45abcccfdc85ca016f6426 [time] => 1194988565 [rand] => 1309992527 ) [User] => Array ( [id] => 1 [username] => brehg [password] => DEB8ABLE [email] => [E

Re: Session problems

2007-11-13 Thread Brian
Tried: print_r($this->Session->read('User.first_name')); and returns nothing On Nov 13, 4:06 pm, "Christopher E. Franklin, Sr." <[EMAIL PROTECTED]> wrote: > Whoops! I was wrong, you can access it via > $this->Session->read('User.first_name'); because the read function uses > Set::extra

Re: Session problems

2007-11-13 Thread Christopher E. Franklin, Sr.
Whoops! I was wrong, you can access it via $this->Session- >read('User.first_name'); because the read function uses Set::extract to get the value out. On Nov 13, 1:05 pm, Brian <[EMAIL PROTECTED]> wrote: > >From within my controller if I print the entire session: > > $this->Session->read() > It r

Re: Session problems

2007-11-13 Thread Christopher E. Franklin, Sr.
>From the looks of it, looks like the while User array is in the Session. I don't know if you did this or not. If not, you have to actually write the key somewhere because, I don't think (I may be wrong) access it in it's current form. ex- $this->Session- >read('User.first_name'); I haven't actua

Session problems

2007-11-13 Thread Brian
>From within my controller if I print the entire session: $this->Session->read() It returns: Array ( [Config] => Array ( [userAgent] => cbc2e74d1e45abcccfdc85ca016f6426 [time] => 1194988565 [rand] => 1309992527 ) [User] => Array ( [id] => 1 [username] => brehg [password] => DEB8ABLE [email] => [EM

Re: Session Problems

2007-06-08 Thread Juan Pablo Araya
AFAIK the simplest form is modifying cake/libs/session.php, in function valid() { return $this->valid; } The change must be. function valid() { return true; } Another way is to check the __checkValid() function. In this, the time

Session Problems

2007-06-08 Thread [EMAIL PROTECTED]
Hi, I have a website http://tvkalendar.com whenever you click on a link (show name) it sets it to be a favorite. It makes the favorites stick via sessions. All works fine but if you come back to the site in a few hours the settings are wiped clean again. I've messed around in core.php with the

Re: Session problems & Ajax -- help!!

2007-04-16 Thread Olwen Williams
In fact it the REAL reason was that my setup was not configured right --- oh dear. On 16/04/07, Olwen Williams <[EMAIL PROTECTED]> wrote: > In the end I think my session problems were nothing to do with Ajax. > It was an ordinary link in my HTML that was causing the cookie to >

Re: Session problems & Ajax -- help!!

2007-04-15 Thread Olwen Williams
In the end I think my session problems were nothing to do with Ajax. It was an ordinary link in my HTML that was causing the cookie to vanish -- Don't ask me why! I replaced it with one using $html->link and it stopped vanishing. On 16/04/07, Olwen Williams <[EMAIL PROTECTED]&

Re: Session problems & Ajax -- help!!

2007-04-15 Thread Olwen Williams
I realised in the middle of the night that this is probably caused by javascript not having access to the cookies, then googled the group and found that someone else had the same issue. The suggestion to them was to adjust cake security which I had already tried. I'm wondering if I could perhaps

Session problems & Ajax -- help!!

2007-04-15 Thread Olwen Williams
I've posted before about problems with sessions, and may have found a link to Ajax (but not a solution). I'm trying to use Ajax.Updater to load a view into part of a page, and it seems to not know about session data. If I call the view as a page it retains the session data. Has anyone else found

Re: [C] Session problems

2007-02-26 Thread tonitorello
jmassi wrote: > > I've read a lot of post talking about some session problems and I've > tried out all the posible solutions that people say but mys sessions > still not working. > The problem is data is disapear when I redirect to another page. > Also I've tre

Re: Session problems

2006-11-28 Thread GiFs
problem solved! i just needed to query the "SET NAMES 'UFT8' " for the database results to come in utf8. Therefore i just need to put the above query before the execution of the select query to the "cake_sessions" table. --~--~-~--~~~---~--~~ You received this

Re: Session problems

2006-11-28 Thread GiFs
Solved my problem 2. I have to find a way to put the query "SET NAMES 'UTF8' " running before the select query to cake_sessions. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gro

Re: Session problems

2006-11-28 Thread GiFs
thnkx for the reply samuel.. i didnt try with the setting in php because i wanted to use in the database. All other variables and values in the session worked (like authentication params, etc). But when a string have a special char it disapears in the next redirect to Null.. I just dont understand

Re: Session problems

2006-11-27 Thread jmassi
SOLVED Finally i found the mistake. For some reason I have comented a line in session.php cake's libs folder and I didn't remeber until now that I decided to look line by line this script. Thanks for your time and responses. --~--~-~--~~~---~--~~ You

Re: Session problems

2006-11-27 Thread jmassi
Thanks for the responses, PHP sessions are working fine I have made a test and everithing its ok. The code for the test is: --- session1.php --- session2.php I've also tried to put CAKE_SESSION_SAVE in cake mode but still not working. Thanks. --~--~-~--~~~---~-

Session problems! Help!

2006-11-18 Thread Eric
function edit($id) { $user = $this->Session->read('User'); $this->set('user',$user); if($user['username'] = $this->data['User']['username']) { if (empty($this->data)) { $this->Post->id = $id; $this->data = $this->Post->read();

Re: Session problems in IE

2006-10-10 Thread bwaters
I had a similar problem with IE - Cake automatically set a session cookie when visitors came to domain.com. I redirected them to the more typical www.domain.com and updated this session variable serveral times. IE completely ignores the www.domain.com subdomain cookie and only sees the domain co

Re: Session problems in IE

2006-10-06 Thread MJ Ray
RosSoft <[EMAIL PROTECTED]> wrote: > I had a similar problem, I was using a subdomain with strange chars > like 'my_subdomain.domain.com'. The character '_' is not allowed in > cookies for IE, then the session is not set. After changing the domain > to mysubdomain.domain.com, sessions worked I'm

Re: Session problems in IE

2006-10-06 Thread RosSoft
I had a similar problem, I was using a subdomain with strange chars like 'my_subdomain.domain.com'. The character '_' is not allowed in cookies for IE, then the session is not set. After changing the domain to mysubdomain.domain.com, sessions worked --~--~-~--~~~---~-

Session problems in IE

2006-10-05 Thread [EMAIL PROTECTED]
I have an observeForm that writes to the session whenever any form element gets changed. This works perfectly fine in Firefox, but it does nothing in IE. There is no error shown, it just doesn't write to the session. I also tried using an observeField, and this works great in Firefox, but does

Re: Strange session problems ;-(

2006-07-03 Thread [EMAIL PROTECTED]
no, Christian.Tietze, result equal in both... Problem in "flavicon" ;) Thx to AD7six ;-) --~--~-~--~~~---~--~~ 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.

Re: Strange session problems ;-(

2006-07-03 Thread Christian.Tietze
Well, it's not obvious what really changes things here... You could try to pr($data); if there's something wrong inside your result (but you should've noticed that in your view, hmm :))... Probably Session::write returns true or false, depending on the sucess of writing. You could try: if ($this-

Re: Strange session problems ;-(

2006-07-02 Thread AD7six
Hi Vladiq, To fix this problem create /app/views/layouts/default.thtml and design your general page layout (or copy from /cake/lib/view/templates/layouts/default.thtml) and make sure that the path to the favicon is absolute (or simply remove it). Hope that helps, Cheers, AD7six For reference:

Strange session problems ;-(

2006-07-01 Thread [EMAIL PROTECTED]
I have controller: in this case does not work, Session variable is empty (N, flavicon...) function view($id) { $data = $this->Ga->read(); $this->set('data', $data); $this->Session->write('modelid',$data['Ga']['name']); } but if I make code like this: function view($id)