Skip to content

Commit

Permalink
Fixed bug #27963 (Session lifetime setting may leak between requests).
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Apr 13, 2004
1 parent 9d10977 commit 254c8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/session/session.c
Expand Up @@ -1221,8 +1221,8 @@ PHP_FUNCTION(session_set_cookie_params)
zend_get_parameters_ex(ZEND_NUM_ARGS(), &lifetime, &path, &domain, &secure) == FAILURE)
WRONG_PARAM_COUNT;

convert_to_long_ex(lifetime);
PS(cookie_lifetime) = Z_LVAL_PP(lifetime);
convert_to_string_ex(lifetime);
zend_alter_ini_entry("session.cookie_lifetime", sizeof("session.cookie_lifetime"), Z_STRVAL_PP(lifetime), Z_STRLEN_PP(lifetime), PHP_INI_USER, PHP_INI_STAGE_RUNTIME);

if (ZEND_NUM_ARGS() > 1) {
convert_to_string_ex(path);
Expand Down

0 comments on commit 254c8d6

Please sign in to comment.