Session trubles
| From: | mgraf | Date: | Wed, 19 Nov 2003 09:56:57 +0000 |
| Subject: | Session trubles | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170253@lists.php.net to get a copy of this message | ||
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.
Mit freundlichen Grüssen
Markus Graf
Hauptstrasse 80
9434 Au
0041 (0)79 / 261 16 37
mgraf@iframe.ch
--
Software is like sex, it's better when it's free!