[wp-hackers] Why WordPress killing Session ?
Dion Hulse (dd32)
wordpress at dd32.id.au
Sat Feb 16 08:06:59 UTC 2013
PHP does not come configured with a Database, that's Application-level
PHP does however come by default with Temporary file storage available.
If you can setup servers and load-balance Applications over servers,
you can manage to configure the extra PHP configuration to give it
your preferred session storage.
PHP Sessions can even work over multiple servers using files, the
servers just need to be configured to use a centralised network
storage location.. but that requires extra PHP configuration to set
On 16 February 2013 15:56, Haluk Karamete <halukkaramete at gmail.com> wrote:
> I understand that the sessions by default is configured to work with
> files. that's how PHP comes with.
> Given to two reasoning below, I'm curious to find out why the default is files?
> db based storage solution is superior to file based solution.
> db based solution won't have a problem with multiple servers.
> On Fri, Feb 15, 2013 at 8:20 AM, Brian Layman
> <wp-hackers at thecodecave.com> wrote:
>> And sessions can work nicely on multiple servers, as long as there is a
>> common storage place.
>> What I've done in the past is to setup a single memcache server used for
>> session storage by all of the web heads. It does not take up a lot of
>> resources on the memcache server. So it probably won't require a dedicated
>> machine. It works quite nicely when you are using something like
>> SimpleSAMLphp, which requires sessions, integrated with the WordPress login
>> process to give you SSO.
>> Brian Layman
>> On 2/15/2013 8:04 AM, Marko Heijnen wrote:
>>> Hey Rich,
>>> I said multiple servers and not a multisite installation.
>>> Op 15 feb. 2013, om 14:02 heeft Rich Pedley <elfin at elfden.co.uk> het
>>> volgende geschreven:
>>>> On 12/02/2013 14:22, Marko Heijnen wrote:
>>>>> Sessions is a feature of PHP but PHP has a lot of features.
>>>>> WooCommerce for example isn't using sessions anymore. Because
>>>>> sessions don't work really well on multiple server. That's also the
>>>>> reason why WordPress doesn't use them.
>>>> Sorry to be a bit late to the party on this one.
>>>> Sessions work fine on multisite for WordPress, if coded correctly. Though
>>>> admittedly they are a cousin of the devil.
>>>> wp-hackers mailing list
>>>> wp-hackers at lists.automattic.com
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers