Re: Session trubles
| From: | Marek Kilimajer | Date: | Wed, 19 Nov 2003 12:18:19 +0000 |
| Subject: | Re: Session trubles | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170259@lists.php.net to get a copy of this message | ||
mgraf wrote:
PHP Version: 4.2.2 Hi I had a problem with my session name. In the php.ini, was set the default name PHPSESSID from the default installation. Now i have the problem, that i use the name "audience" for my webapplikations with PHPope (http://www.phpope.org) I Set the name in the script with the following code: session_name("audience"); session_set_cookie_params(time()+9999999, "/", $config["default"]["cookiedomain"]); session_cache_limiter('no_cache'); session_start(); Now i had the problem, that i lost the session after login. The server forgave me a new session which called PHPSESSID and not audience :-( Now i have changed the value session.name in my php.ini to audience and it works! What's the problem here? A bug? I have enabled session.auto_start.This is the problem, the session is started before your script executes and sets the session name. Disable session.auto_start