[Solar-talk] [Solar_User_Auth] Logout action: $_POST vs. $_GET

Antti Holvikari anttih at gmail.com
Tue May 9 11:12:15 PDT 2006


On 5/9/06, Paul M Jones <pmjones at solarphp.com> wrote:
> On May 9, 2006, at 10:59 AM, Antti Holvikari wrote:
>
> > Any chance it could be possible to also support logout requests coming
> > in as $_GET? I haven't really seen any websites using Sign out
> > -buttons. I'd prefer a link "Sign out" :-). Is it just me?
>
> Strictly speaking, GET should not perform actions with side-effects,
> and logging out is clearly a side-effect.  ;-)
>
> That aside, I have no strong objection to adding a config key called
> 'via' or 'source' in Solar_User_Auth to specify how login attempts
> should be processed ("'via' => 'get'" or "'source' => 'post'").
> Then, for consistency, I'd have to rename the 'post_*' keys to
> 'via_*' or 'source_*'.
>
> Comments?

+1 for 'source_'!

I understand your point of the side-effect, but design-wise it's hard
to stick submit buttons into menus.

--
Antti Holvikari <http://antti.dotgeek.org/blog>
Zend Certified Engineer (ZCE)


More information about the solar-talk mailing list