php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10965 session_register() doesn't work after session_id(n)
Submitted: 2001-05-18 19:49 UTC Modified: 2001-06-14 23:45 UTC
From: averma at lvision dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.4 OS: linux 2.2.14
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: averma at lvision dot com
New email:
PHP Version: OS:

 

 [2001-05-18 19:49 UTC] averma at lvision dot com
I am implemeting an e-commerce site with credit-card processing done
by an external payment processor. Right now I am evaluating
itransact.com.

They have a feature where I can send a ret_addr (a full url of a script
on my server, say, fromPP.php) and variable name/value pairs to them
when I "submit" a form. Then they do a POST to fromPP.php and pass the
variables as POST variables along with the status code etc. One of the
variables I am passing is the session id, say, SESSid, when I submit
the form to their site.

The idea is to maintain the state in fromPP.php by doing a
session_id($SESSid). I am able to get the right SESSid from the
payment processor and after doing session_id($SESSid) I am able to
access all session variables declared before submitting the form, but
when I try to register new session variables in fromPP.php, for
example, by calling session_register("FROMPP_xid"), nothing happens.
There are no errors but this variable does not actually get registered.
If I start a new session in fromPP.php, then it works fine, but I
lose the state.

This looks like a bug to me.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-14 23:45 UTC] sniper@php.net
Try latest RC from http://www.php.net/~andi/php-4.0.6RC3.tar.gz

If above link doesn't work, try with RC4.
If this doesn't work with this version either,
Reopen this bug report with example script.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 28 10:01:29 2024 UTC