From: Antonio B. <an...@ve...> - 2006-06-29 14:24:31
|
Hi, I'm having problems with authentication in phpwiki 1.3.12p2: and also with the CVS versione at the moment I'm writing. Navigation works, but authentication does not persist: on the first request after a successfull authentication, all goes well and the user is signed and authenticated. But on the following requests I am only signed but not authenticated (even for ADMIN_USER). I had a look at the client cookie named PhpWiki_WIKI_ID and I'm wondering why it expires immediately instead of expiring at quit time or after a while. I know there is: COOKIE_EXPIRATION_DAYS = 365 into config.ini but it doesn't seem to be honored. thanks a lot for helping PS: Some more details about my installation follows, if needed: I'm using the default config.ini, just a copy of config-dist.ini, except for the following simple differences: # diff config.ini config-dist.ini 157c157 < ADMIN_USER = admin --- > ;ADMIN_USER = 161c161 < ADMIN_PASSWD = "my encrypted password" --- > ;ADMIN_PASSWD = 322c322 < CACHE_CONTROL = NO_CACHE --- > CACHE_CONTROL = LOOSE 378c378 < DATABASE_TYPE = SQL --- > DATABASE_TYPE = dba 406c406 < DATABASE_DSN = "mysql://www:mydbpwd\1@unix(/tmp/mysql.sock)/phpwiki_CVS" --- > DATABASE_DSN = "mysql://guest@unix(/var/lib/mysql/mysql.sock)/test" I have apache-2.2.2, Php 5.1.4 and MySQL 5.0.22. Here is what I changed into php.ini: # diff php.ini php.ini-recommended 314c314 < memory_limit = 16M ; Maximum amount of memory a script may consume (8MB) --- > memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) 579c579 < upload_tmp_dir = /tmp --- > ;upload_tmp_dir = 949c949 < session.save_path = "/tmp" --- > ;session.save_path = "/tmp" I've also uncommented this into index.php: // define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']); because otherwise I only get blank pages. |