Bug #16389 Updated: session_name doesnt work as expected

From: Date: Wed, 03 Apr 2002 15:47:41 +0000
Subject: Bug #16389 Updated: session_name doesnt work as expected
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3929@lists.php.net to get a copy of this message
ID: 16389 Updated by: yohgaki@php.net Reported By: assid@assid.com Status: Closed Bug Type: Session related Operating System: Linux PHP Version: 4.1.2 New Comment: If you really think this is a bug, you need to paste some script and it's setting here to demonstrate bug. It sounds like there is your error (there may not) and I don't see what is exact problem yet. Previous Comments: ------------------------------------------------------------------------ [2002-04-03 10:28:31] assid@assid.com the first time i tried it was without .htaccess for sub2 so that wasnt on auto start. My whole report is basically to state that without session.name in .htaccess it just didnt work. ------------------------------------------------------------------------ [2002-04-03 09:42:07] yohgaki@php.net I think other issue is fixed in 4.2.0RC1. Visit http://qa.php.net/ for 4.2.0RC1. Please reopen if you still have problem. Thank you. ------------------------------------------------------------------------ [2002-04-03 09:03:13] yohgaki@php.net You are starting session automatically. Then you cannot change session name with session_name(). (I've commited warning patch before but it's reverted) PHP does not raise any error and it does work. It's not nice. Don't you think so ;) BTW, when we ask script, paste script even if it _very_ simple. There are many cases that no one cannot be sure if it's bug or user error w/o script. It seems there is other issue in your report also. ------------------------------------------------------------------------ [2002-04-03 06:31:29] assid@assid.com try this, but try across subdomains. .htaccess for sub1 php_value session.name eisessid php_value session.auto_start 1 php_value session.save_path /home/blah/tmp php_value session.cookie_domain .blah.com now make a script and add a session variable... just register anything... now make a replica of this .htaccess for sub2 but remove session.name directive. now in sub2 try to access the session variable of sub1 you wont be able to. add the session_name into your script (not .htaccess) and try again.. and ofcourse the session_id.. yet wont work now in .htaccess add the session.name directive and set it to blahsessid and in the sub2 page, set session_name to eisessid so u can access sub1's sessvar. you should be able to do it now. even if u change .htaccess to eisessid it will work this shows u can access the session variable of another sub only if there is a directive for session.name in .htaccess even tho the session name is different. but otherwise without this directive it just wont work. ------------------------------------------------------------------------ [2002-04-02 08:30:50] yohgaki@php.net Could you paste short and complete script? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16389 -- Edit this bug report at http://bugs.php.net/?id=16389&edit=1

« previous php.bugs (#3929) next »