Thursday, May 31, 2012

Re: browser compatibility: the weirdest thing ever with IE. throws flash message all the time!!!

If it only occurs on IE it might be a prolem with the user session.
Try setting Session.checkAgent to false in core.php and see if that
helps.
I had problems with sessions getting dropped in IE, with this setting
on.

On May 31, 9:33 pm, luftlinie <thomasfuch...@googlemail.com> wrote:
> hi everyone,
>
> I try to explain it shortly. When a user clicks on any profile, my
> controller function checks if that user is active oder locked. active
> means account is activated, locked means locked ;).
>
> now i have been testing this with chrome, safari and firefox for
> months!!! the process works, 100%.
>
> BUT with Internet Explorer... if I go on any users profile, activated
> or unlocked, cake throws me the message, although, logically, it is
> correct in my code. it worked in other browsers and IE goes to those
> profile without redirecting..
> I am not even close to getting this. I am totally stunned. Its so
> weird.
>
> Is there any way, that IE cant handle cakes flash messages, or the CSS
> with it?
>
> here is my controller profile code:
> =======================================================
> $locked = $this->User->find('first', array(
>                             'fields' => array('User.id','User.locked', 'User.active'),
>                             'conditions' => array('User.id = \''.$id.'\' AND User.locked =
> false')
>                             ));
>
>                 if(!empty($locked))
>                 {
>                         if($locked['User']['active'] == true)
>                         {
>
>                                 if($id != $this->Session->read('User.id')) //visitor!!
>                                 {
>
>                             some code here........
>                                 }
>                                 else //profile owner!!
>                                 {
>                                         some code here........
>                                 }
>
>                         }//active
>                         else
>                         {
>                                 $this->Session->setFlash('this account is not active.');
>                                 $this->redirect(array('controller' => 'users', 'action' =>
> 'profile', $this->Session->read('User.id')));
>                         exit();
>                         }
>
>         }//unlocked
>         else
>         {
>                 $this->Session->setFlash('user has been deleted');
>                 $this->redirect(array('controller' => 'users', 'action' =>
> 'profile', $this->Session->read('User.id')));
>                 exit();
>         }
>
>      }
> =====================================================
>
> so IE always(!) goes to that certain profile throws this line
> $this->Session->setFlash('this account is not active.');
>
> BTW i am using this code to throw the cake typical messages
> if($session->check('Message.flash')):
>                                         echo $session->flash();
>                                 endif;
>
> appreciate your help. thanks soooo much

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate