Session Oddness

From: Date: Tue, 12 Mar 2002 16:00:13 +0000
Subject: Session Oddness
Groups: php.dev 
Request: Send a blank email to php-dev+get-81113@lists.php.net to get a copy of this message
Guys, Somebody hsa done something screwy with sessions, ther WEREN'T defining SID when a cookie wasnt set. heres a diff: --- php4-200203120300/ext/session/session.c Wed Mar 13 02:51:51 2002 +++ tmp/php4-200203120300/ext/session/session.c Sat Mar 9 11:33:29 2002 @@ -940,14 +940,7 @@ smart_str_0(&var); REGISTER_STRING_CONSTANT("SID", var.c, 0); } else { - smart_str var = {0}; - - smart_str_appends(&var, PS(session_name)); - smart_str_appendc(&var, '='); - smart_str_appends(&var, PS(id)); - smart_str_0(&var); - REGISTER_STRING_CONSTANT("SID", var.c, 0); - /* REGISTER_STRING_CONSTANT("SID", empty_string, 0); */ + REGISTER_STRING_CONSTANT("SID", empty_string, 0); } PS(session_status) = php_session_active; it had me scratchin my head for a while Matt

« previous php.dev (#81113) next »