Re: Session Oddness
| From: | Yasuo Ohgaki | Date: | Wed, 13 Mar 2002 01:20:09 +0000 |
| Subject: | Re: Session Oddness | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81114@lists.php.net to get a copy of this message | ||
Yeah. I know.
This is one of the issue I'm going to discuss with Sascha.
It's not important for me compare to other issues, so this
will be the last one.
Anyway, may be we should go back to the original behavior
for now.
--
Yasuo Ohgaki
yohgaki@dd.iij4u.or.jp
Matt Allen wrote:
> 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
>