Bug #16389 Updated: session_name doesnt work as expected

From: Date: Tue, 02 Apr 2002 13:30:51 +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-3819@lists.php.net to get a copy of this message
ID: 16389 Updated by: yohgaki@php.net Reported By: assid@assid.com -Status: Open +Status: Feedback Bug Type: Session related Operating System: Linux PHP Version: 4.1.2 New Comment: Could you paste short and complete script? Previous Comments: ------------------------------------------------------------------------ [2002-04-02 06:34:29] assid@assid.com Okay i was playing around some more.. I found that if i set some other session name into .htaccess i can yet retrieve information from my actual session variable (eisessid). but if i dont add anything into .htaccess (default being phpsessid) it doesnt seem to work. ------------------------------------------------------------------------ [2002-04-02 06:19:31] assid@assid.com i almost forgot session_name also returns eisessid if i set it from my script but doesnt return any session variable info. But using .htaccess it yet returns eisessid as session name but this time it returns the session variable info as well. (both cases session_id remains the same). ------------------------------------------------------------------------ [2002-04-02 05:57:17] assid@assid.com session_name is supposed to get/set the session name. So basically if i have a session variable which is registered under a particular session name and a session id i should be able to propogate it across any subdomain. Now heres the real problem i have a domain.com which works on eisessid as its session name and i have abc.domain.com which i am trying to access the session information. When i set session_name to eisessid i do not get the information of that session(from within my php script). However, when i put session.name as eisessvar in my .htaccess of abc.domain.com i am able to retrieve the information. Since session_name is supposed to set/get the name of the session and i am propogating the session id to work, shouldnt session_name from within my code be able to access the session variables ? instead of having to only do it from .htaccess ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16389&edit=1

« previous php.bugs (#3819) next »