kohana

Optimizing Kohana-based Websites for Speed and Scalability

吃可爱长大的小学妹 提交于 2019-11-26 12:49:45
问题 A site I built with Kohana was slammed with an enormous amount of traffic yesterday, causing me to take a step back and evaluate some of the design. I\'m curious what are some standard techniques for optimizing Kohana-based applications? I\'m interested in benchmarking as well. Do I need to setup Benchmark::start() and Benchmark::stop() for each controller-method in order to see execution times for all pages, or am I able to apply benchmarking globally and quickly? I will be using the Cache

preventing csrf in php

你说的曾经没有我的故事 提交于 2019-11-26 01:43:17
问题 Requiring authentication in GET and POST parameters, not only cookies; Checking the HTTP Referer header; saw this post on wikipedia and was wondering how I can apply them ok...I am using the Kohana PHP framework and I have the facility to determine the referrer header, but what exactly do I check in the referrer header? the framework function only returns the URL of the referrer and how do I validate GET and POST params? against what? stored information? expected type? 回答1: To prevent CSRF

preventing csrf in php

坚强是说给别人听的谎言 提交于 2019-11-25 22:04:52
Requiring authentication in GET and POST parameters, not only cookies; Checking the HTTP Referer header; saw this post on wikipedia and was wondering how I can apply them ok...I am using the Kohana PHP framework and I have the facility to determine the referrer header, but what exactly do I check in the referrer header? the framework function only returns the URL of the referrer and how do I validate GET and POST params? against what? stored information? expected type? leepowers To prevent CSRF you'll want to validate a one-time token, POST'ed and associated with the current session. Something