Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Session setFlash is not working on Firefox 3.5.3
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Franco Bonazza  
View profile   Translate to Translated (View Original)
 More options 9 Oct, 21:12
From: Franco Bonazza <fviki...@gmail.com>
Date: Fri, 9 Oct 2009 13:12:53 -0700 (PDT)
Local: Fri 9 Oct 2009 21:12
Subject: Session setFlash is not working on Firefox 3.5.3
Hello,

Here's my problem

Something this simple:

// controller

Class ExsController extends AppController{
public function list(){
        $this->Session->setFlash('Hello');
        $this->redirect('/exs/new',null,true); // or redirect + die()

}

public function new(){}

}

// view layout

<?php $session->flash() ?>

Doesn't work at all when I'm using Firefox. It works in opera 10, ie8,
safari and chrome.
Session is working, if I write something manually I can see it in
firefox. I can even see that at some point the message was put in
session because if I print the session I see the empty message array.
If I take out the redirect it shows the message in that page even in
firefox, somehow it gets wiped. As if the script would have continued
after the redirect... but only in firefox, wich just flips me out. It
can't be catching a template, I can't imagine that... Anyone has a
clue about what's happening here?

This happened in a big project but I reduced to something as simple as
what I pasted and the problem persists.

I hope someone at least tries this and tells me it works for them,
just to know if I have some weird configuration on browser or server,
or this really doesn't work.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Franco Bonazza  
View profile   Translate to Translated (View Original)
 More options 9 Oct, 23:56
From: Franco Bonazza <fviki...@gmail.com>
Date: Fri, 9 Oct 2009 15:56:52 -0700 (PDT)
Local: Fri 9 Oct 2009 23:56
Subject: Re: Session setFlash is not working on Firefox 3.5.3
Sorry, Cake is 1.2.5, server is Apache 2.2 running on windows, and PHP
is 5.2.

Don't know if it's relevant.

On 9 oct, 17:12, Franco Bonazza <fviki...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Octavian  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 10:12
From: Octavian <octaviansus...@gmail.com>
Date: Thu, 5 Nov 2009 02:12:29 -0800 (PST)
Local: Thurs 5 Nov 2009 10:12
Subject: Re: Session setFlash is not working on Firefox 3.5.3
Same configuration & same problems too...

On 9 okt, 23:56, Franco Bonazza <fviki...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Andersen  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 10:33
From: John Andersen <j.andersen...@gmail.com>
Date: Thu, 5 Nov 2009 02:33:06 -0800 (PST)
Local: Thurs 5 Nov 2009 10:33
Subject: Re: Session setFlash is not working on Firefox 3.5.3
$this->redirect closes the existing session and thus your flash
message is not passed on!

See the Controller api at http://api.cakephp.org/view_source/controller/#line-536

Enjoy,
   John

On Nov 5, 12:12 pm, Octavian <octaviansus...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nurvzy  
View profile   Translate to Translated (View Original)
 More options 6 Nov, 09:30
From: nurvzy <nur...@gmail.com>
Date: Fri, 6 Nov 2009 01:30:17 -0800 (PST)
Local: Fri 6 Nov 2009 09:30
Subject: Re: Session setFlash is not working on Firefox 3.5.3
@John: You are mistaken. First, if that were the case, flashes
wouldn't work in all the other browser which the OP clearly stated it
does, and secondly, the entire point of flash is to pass a message to
the user through a redirect.  I use them all the time and they work
perfectly well through redirects.

To the OP, it works fine in Firefox 3.5.4 for me, Cent OS server, PHP
5.2.9.   Is it just Firefox 3.5.3?  Have you tried installing the
latest version of firefox in a VM (or somewhere) to repeat the result?

Nick

On Nov 5, 3:33 am, John Andersen <j.andersen...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Andersen  
View profile   Translate to Translated (View Original)
 More options 6 Nov, 10:27
From: John Andersen <j.andersen...@gmail.com>
Date: Fri, 6 Nov 2009 02:27:31 -0800 (PST)
Local: Fri 6 Nov 2009 10:27
Subject: Re: Session setFlash is not working on Firefox 3.5.3
@Nick: Yes, you are right! My mistake, even saw it in my own code :)
Firefox 3.5.2 works fine! Will install 3.5.3 just to test it!
Enjoy,
   John

On Nov 6, 11:30 am, nurvzy <nur...@gmail.com> wrote:

> @John: You are mistaken. First, if that were the case, flashes
> wouldn't work in all the other browser which the OP clearly stated it
> does, and secondly, the entire point of flash is to pass a message to
> the user through a redirect.  I use them all the time and they work
> perfectly well through redirects.

> To the OP, it works fine in Firefox 3.5.4 for me, Cent OS server, PHP
> 5.2.9.   Is it just Firefox 3.5.3?  Have you tried installing the
> latest version of firefox in a VM (or somewhere) to repeat the result?

> Nick

[snip]

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Andersen  
View profile   Translate to Translated (View Original)
 More options 6 Nov, 10:42
From: John Andersen <j.andersen...@gmail.com>
Date: Fri, 6 Nov 2009 02:42:40 -0800 (PST)
Local: Fri 6 Nov 2009 10:42
Subject: Re: Session setFlash is not working on Firefox 3.5.3
Tested with Firefox 3.5.3, works perfectly at my development site.
Using:
Apache 2.2.13
MySQL 5.1.37
PHP 5.3.0
One example of my code:

Controller:
                     $this->Session->setFlash(__d
('messages','commentor_has_been_received',true));
                     $this->redirect('/'.strtolower($this->name).'/
view/'.$this->data[$modelName]['id']);

Layout:
if ( $session->check('Message.flash') )
{
   $session->flash();

}

Enjoy,
   John

On Nov 6, 12:27 pm, John Andersen <j.andersen...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Octavian  
View profile   Translate to Translated (View Original)
 More options 20 Nov, 16:39
From: Octavian <octaviansus...@gmail.com>
Date: Fri, 20 Nov 2009 08:39:21 -0800 (PST)
Local: Fri 20 Nov 2009 16:39
Subject: Re: Session setFlash is not working on Firefox 3.5.3
Reinstalled FF, works perfectly.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google