[Solar-talk] [Solar_User_Auth] Logout action: $_POST vs. $_GET
Paul M Jones
pmjones at solarphp.com
Tue May 9 09:27:50 PDT 2006
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?
--
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