php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10295 Cookie Problem. Cookie value overrides variable with same name passed in form.
Submitted: 2001-04-11 17:05 UTC Modified: 2001-04-11 17:11 UTC
From: mike at xamo dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mike at xamo dot com
New email:
PHP Version: OS:

 

 [2001-04-11 17:05 UTC] mike at xamo dot com
Save a cookie with variable "username". Give it a value.
Make a form with an input box named "username".
Submit the form to your script and read the value of username. It will contain the value of the cookie, and not of the input form. Priority should work the other way around!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-11 17:11 UTC] derick@php.net
You can set these preferences in php.ini, the variables_order parameter.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC