After create a project form wizard, go to de test url defined on my local apache
go to de php session save path folder
i can see that after execute request php create multiple (often 2 files) session files
i try the same example using standar php session ( without agavi ) and php
only create a one session file for each client conection
counter session example
on agavi:
public function getDefaultViewName()
{
$user = $this->getContext()->getUser();
$var = $user->getAttribute('var', null, 0);
echo $var;
$var ++;
$user->setAttribute('var', $var);
return AgaviView::NONE;
}
after 6 request i get 9 session files:
ls -lsh
total 36K
4,0K -rw------- 1 www-data www-data 256 abr 6 18:55 sess_8o5nc6a10j5bs28oeqh82uksp3
4,0K -rw------- 1 www-data www-data 256 abr 6 18:55 sess_d8ovm1n4csr2m2l52otgpoqfq0
4,0K -rw------- 1 www-data www-data 256 abr 6 18:55 sess_foaouq0dv5tnjos89n7uhvcuk7
4,0K -rw------- 1 www-data www-data 192 abr 6 18:41 sess_js31b6kmn8ujs7aj2r1e677a23
4,0K -rw------- 1 www-data www-data 192 abr 6 18:52 sess_jt065d5jmrpj7iq9q5fcupluj6
4,0K -rw------- 1 www-data www-data 256 abr 6 18:55 sess_qe5t5v3jpmvg7lb98g1k7rkan5
4,0K -rw------- 1 www-data www-data 256 abr 6 18:55 sess_ro9029gglsnusi96ipuglpmoj7
4,0K -rw------- 1 www-data www-data 256 abr 6 18:55 sess_sinmo7f3l78rg2i8timnaicd31
4,0K -rw------- 1 www-data www-data 256 abr 6 18:55 sess_vg6o8u7cf3mcahsp2pcumlub36
php old school using the same .htaccess reply the same error
session_start();
$var = isset($_SESSION['var]) ? $_SESSION['var] : 0;
echo $var;
$var ++;
$_SESSION['var] = var;
But, i remove .htaccess file and the error was not reply
using php old school example.
or
When i try agavi or php old school example with the next url using the current .htaccess file on
i updated htacces file
RewriteBase /example/
What is the error in: .htaccess file or apache config or php config
for using .htaccess agavi generated file on domain basepath /
On linux and Windows get the same error
i reply the error on
agavi 1.0.7
apache 2
php 5.3.10
Ubuntu 12.04
Debian Lenny
Windows 7 profesional
thanks for your help
sorry for my english
--
Atte
Rafael Ángel Guerrero Godoy