xajax

Create the session during ajax call (php-xajax)

天大地大妈咪最大 提交于 2019-12-13 15:42:29
问题 i need to avoid the creation of the session in the application unless it is completely necessary. I have noticed that xajax calls dont work properly if the session is not started :(. My first approach was to create the session (if it doesn't exist) at the begining of the xajax function, however, it doesn't work the first time the user invokes the call (it works the second time since the session was created). There is any way to handle/fix this situation? Edit: an example code: function

exclude files from rewrite rule in .htaccess

爱⌒轻易说出口 提交于 2019-12-04 05:27:19
问题 I'm modifying an existing website that uses a fairly complex .htaccess file to implement a custom MVC type framework so all urls are redirected to index.php?[some parameters] or a 404 page. I'd like to add ajax support to a limited area of the site using XAJAX, and to implement that I need to place two files in the root which are ignored by the rewrite rules. How do I do that? 回答1: How about identity rewriting rule with “last” flag on the top of your rules? For example, to exclude “/a-file

exclude files from rewrite rule in .htaccess

守給你的承諾、 提交于 2019-12-02 04:27:45
I'm modifying an existing website that uses a fairly complex .htaccess file to implement a custom MVC type framework so all urls are redirected to index.php?[some parameters] or a 404 page. I'd like to add ajax support to a limited area of the site using XAJAX , and to implement that I need to place two files in the root which are ignored by the rewrite rules. How do I do that? How about identity rewriting rule with “last” flag on the top of your rules? For example, to exclude “/a-file-outside-of-rewriting.html” from current set of rules, the following configuration might help: # http://~