[Solar-talk] [Solar_User_Auth] Logout action: $_POST vs. $_GET
Paul M Jones
pmjones at solarphp.com
Tue May 9 12:00:10 PDT 2006
On May 9, 2006, at 1:12 PM, Antti Holvikari wrote:
> 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.
Good point about menus. A bit of JavaScript magic would to the trick
there, but that's hardly a straightforward solution, and I want
simple stuff.
Any other comments?
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list