Using PHP $_SESSION variable to store large amonts of data

后端 未结 2 875
醉梦人生
醉梦人生 2020-12-12 06:07

I\'m currently storing a fair amount of data in the $_SESSION variable. I\'m doing this so I don\'t need to keep accessing the database.

Should I be worried about me

2条回答
  •  情话喂你
    2020-12-12 06:47

    .. in addition to what @Pekka wrote:

    PHP sessions an not alternative to a caching solution !

    You should investigate if your server has APC available. You should use that on top of layer which accesses information from database (assuming you actually have an OO code).

提交回复
热议问题