php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2450 use session variable values after form method=post
Submitted: 1999-10-06 03:55 UTC Modified: 1999-10-06 09:11 UTC
From: henri dot cujass at leolo dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: Sun Solaris 2.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: henri dot cujass at leolo dot com
New email:
PHP Version: OS:

 

 [1999-10-06 03:55 UTC] henri dot cujass at leolo dot com
The problem is that the session_register is _stronger_ than the post method. 
When I start a session and register a variable and give a value
to this variable, then the form post will not override the original value.

Solaris 2.6/2.7 Apache/mod_php
php.ini:
[Session]
session.save_handler = files        
session.save_path = /tmp                                            
session.name = PHPSESSID           
session.auto_start = 0           
session.lifetime = 0              
session.serialize_handler = php     
session.gc_probability = 1       
session.gc_maxlifetime = 1440       

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-06 09:11 UTC] andrei at cvs dot php dot net
Session variables are supposed to override post variables
with the same name. Otherwise your script becomes unsecure.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 18:01:35 2024 UTC