[wp-hackers] sessions and wordpress

Nikola Nikolov nikolov.tmw at gmail.com
Fri Nov 15 17:37:53 UTC 2013


How would you handle data like a shopping cart?

I'm just curious what other options you have that would be okay to use.
Would you store the session data in the database maybe? I know storing it
in a cookie is not an overly good idea.


On Fri, Nov 15, 2013 at 7:34 PM, Otto <otto at ottodestruct.com> wrote:

> It's not really a question of WordPress specifically. PHP sessions have
> rather poor support on various hosting systems, as I discovered the hard
> way. There's also caching issues and so forth.
>
> If you're making code for your own site, where you control the setup and
> configuration, then that's one thing. But making code designed to be used
> across lots of different sites and configurations and setups is a slightly
> different story.
>
> -Otto
>
>
> On Fri, Nov 15, 2013 at 10:22 AM, Haluk Karamete <halukkaramete at gmail.com
> >wrote:
>
> > Sure that's a big one Mike.
> > I'd like to hear more problems with sessions though. I'm just building a
> > case study on why sessions should be avoided as far as WordPress goes.
> > On Nov 15, 2013 7:27 AM, "Mika A Epstein" <ipstenu at ipstenu.org> wrote:
> >
> > > PHP Sessions?
> > >
> > > You massively screw up anyone with Varnish Caching for one (PHP
> Sessions
> > > effectively tells Varnish "No, bro, you don't need to cache, so lemme
> > load
> > > up like a logged in user!")
> > >
> > > Haluk Karamete wrote:
> > >
> > >>
> > >> Hello,
> > >>
> > >> Are the important consequences of using Sessions in WordPress?
> > >> If there are, could someone elaborate the most vital things to in a
> few
> > >> sentences..
> > >>
> > >> At the top of my head, I am thinking there might be some issues with
> > >> Sessions as far as scalability, code performance, multisite, or
> multiple
> > >> servers configurations... Not sure, if these concerns are valid
> > though...
> > >>
> > >> And in general, is avoiding the sessions considered "best-practice" in
> > the
> > >> WordPress world?
> > >>
> > >> as always, this question pertains to sites that gets heavy traffic.
> > >> _______________________________________________
> > >> wp-hackers mailing list
> > >> wp-hackers at lists.automattic.com
> > >> http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >>
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list