cookies enabled?

On Jul 29, 9:08 am, travis <lyf...@gmail.com> wrote:
> Hi all,
>
> I just found some functions have problems in my Chrome browser. It
> took me some time to find out the problem is caused by the setFlash
> method in sfUser. It seems it can't work properly in Chrome.
>
> Here is how I test the function:
>
> I created two actions:
>
> The first one can be visisted by /test/set, it is used to set the
> attribute and flash of the current user:
>
>   public function executeSet() {
>     $t = time();
>     $this->getUser()->setAttribute('a', $t);
>     $this->getUser()->setFlash('f', $t);
>     echo "The Attribute is set to : $t</br >";
>     echo "The Flash is set to : $t</br >";
>     die();
>   }
>
> Another one can be visited by /test/get, it is used to get the values
> set by previous one:
>
>   public function executeGet() {
>     $a= $this->getUser()->getAttribute('a');
>     $f = $this->getUser()->getFlash('f');
>     echo "The Attribute is : $a</br >";
>     echo "The Flash is : $f</br >";
>     die();
>   }
>
> So I can first visit the first one action, and then visit another, and
> compare the value to check the result. Here are the test result I got
> (tested in FF, Safari, IE and Chrome)
>
> 1. FF (3.5.11)
> /test/set:
> The Attribute is set to : 1280386366
> The Flash is set to : 1280386366
>
> /test/get:
> The Attribute is : 1280386366
> The Flash is : 1280386366
>
> 2. Safari (5.0)
> /test/set:
> The Attribute is set to : 1280386435
> The Flash is set to : 1280386435
>
> /test/get:
> The Attribute is : 1280386435
> The Flash is : 1280386435
>
> 3. IE (7.0.5730.11)
> /test/set:
> The Attribute is set to : 1280386599
> The Flash is set to : 1280386599
>
> /test/get:
> The Attribute is : 1280386599
> The Flash is : 1280386599
>
> 4. Chrome (5.0.375.125)
> /test/set:
> The Attribute is set to : 1280386677
> The Flash is set to : 1280386677
>
> /test/get:
> The Attribute is : 1280386677
> The Flash is :
>
> As you can see, the flash value is missing here in Chrome.
>
> This is really strange since this problem seems have nothing to do
> with what kind of browser I used.
>
> More frastrucated is I checked the session file after visiting the /
> test/set, for Chrome, it is:
>
> symfony/user/sfUser/lastRequest|i:1280386998;symfony/user/sfUser/
> authenticated|b:0;symfony/user/sfUser/credentials|a:0:{}symfony/user/
> sfUser/attributes|a:3:{s:30:"symfony/user/sfUser/attributes";a:1:{s:
> 1:"a";i:1280386997;}s:25:"symfony/user/sfUser/flash";a:0:{}s:
> 32:"symfony/user/sfUser/flash/remove";a:0:{}}symfony/user/sfUser/
> culture|s:2:"en";
>
> And for the other ones:
>
> symfony/user/sfUser/lastRequest|i:1280387018;symfony/user/sfUser/
> authenticated|b:0;symfony/user/sfUser/credentials|a:0:{}symfony/user/
> sfUser/attributes|a:2:{s:30:"symfony/user/sfUser/attributes";a:1:{s:
> 1:"a";i:1280387018;}s:25:"symfony/user/sfUser/flash";a:1:{s:1:"f";i:
> 1280387018;}}symfony/user/sfUser/culture|s:2:"en";
>
> I'm not sure anything could cause this? Do you have met this problem?
> Or it is just something wrong with my computer? The symfony version is
> 1.4.6. The application is running on Windows XP SP2 with WAMP.
>
> travis

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to