2008年9月22日星期一

Re: [fw-auth] problems restarting sessions when posting files via swfupload (Flash)

PHP is super hacky in that respect, but it comes in handy on occasion.  I recently needed to rewrite the $_COOKIE global because PHP doesn't conform to RFC 2109, the RFC that defines the Cookie and Set-Cookie HTTP headers (I mean, it's only been almost 12 years since the spec was written...).  It was preventing Zend_Session from working properly, and rather than implement my own session implementation, I only had to do that.

-Matt

On Mon, Sep 15, 2008 at 2:05 AM, mothmenace <ultraniblet@gmail.com> wrote:

Hi Giuliano, thanks for the suggestion, I checked but use_only_cookies was on
(default I assume).
However, I found that setting
$_COOKIE['PHPSESSID'] = $_REQUEST['PHPSESSID'];
before any session operations ( eg Zend_Auth::getInstance()->getIdentity() )
worked.
I am assuming Zend_Session checks only the $_COOKIE for the SID?

There doesn't seem to be much swfupload -> ZF activity online so I couldn't
compare my work with anyone.

Kindest regards!


Giuliano Riccio wrote:
>
> Do you have "use_only_cookies" on? (
> http://framework.zend.com/manual/en/zend.session.global_session_management.html#zend.session.global_session_management.configuration_options
> Session settings documentation )
>
> Giuliano Riccio
>

--
View this message in context: http://www.nabble.com/problems-restarting-sessions-when-posting-files-via-swfupload-%28Flash%29-tp19485713p19489382.html
Sent from the Zend Auth mailing list archive at Nabble.com.


没有评论: