News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorna Mitchell's Blog:
Auth Mechanisms for Web Services
May 01, 2009 @ 14:28:52

In this new post to her blog Lorna Mitchell looks at authentication in web services with a few questions for you to consider as you make your development plans.

Quite a lot of services don't require any authentication at all, similar to quite a lot of the web. In either setting, the information is there for users to consume when they want. However the difference comes when services start doing more than making data available. If changes can be effected by the service, then we need to identify who is requesting the change.

She notes that one popular method is the tried-and-true username and password combination. This simple (and familiar) technique can even make the load lighter on your application, reducing the complexity of the authorization process. She suggests using a token to identify your users once they've authenticated, providing a simple and secure method for user tracking.

With this information being independent and just used to verify the user, there is also the option of storing this in an alternative, faster, mechanism such as memcache.
0 comments voice your opinion now!
autentication mechanism webservice token suggestion


PHPImpact Blog:
Memcached consistent hashing mechanism
December 24, 2008 @ 10:21:34

The PHP::Impact blog has a recommendation for those using the memcache functions in their PHP applications - be sure your hashing strategy matches what your script does.

If you are using the Memcache functions through a PECL extension, you can set global runtime configuration options by specifying the values within your php.ini file. One of them is memcache.hash_strategy. This option sets the hashing mechanism used to select and specifies which hash strategy to use: Standard (default) or Consistent.

The recommendation is to set it to consistent to allow for the most flexibility on adding and removing servers from the caching server pool without the need for outside intervention.

0 comments voice your opinion now!
cache memcache hashing mechanism recommendation consistent



Community Events





Don't see your event here?
Let us know!


opinion language podcast voicesoftheelephpant bugfix list interview framework series install release library laravel community deployment tips symfony package api introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework