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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 - 2 = ?
Subscribe to this entry?

 
 [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: Sun Jun 16 14:01:30 2024 UTC