Ask a Question related to PHP Development, Design and Development.
-
Ralph Guzman #1
Registering Session
I have a shopping cart checkout form where I am using GET to specify
payment method from payment_method.php page.
So I have something like the following:
From payment_method.php the user chooses payment method by clicking on a
payment link that then send them to the checkout_form.php
checkout_form.php?form=cc for credit card
checkout_form.php?form=ch for credit check
checkout_form.php?form=ph for phone
since checkout_form is broken down into multiple forms, I am using
session_register to set form type in checkout_form.php
$form_type = $_GET['form'];
session_register('form_type');
The problem is that at times it registers $form_type properly as 'cc,
ch, or ph', but other times it registers $form_type as 'Object'.
Why is it registering sessiong as 'Object'. Anybody experience similar
problem?
Ralph Guzman Guest
-
#16263 [Com]: session.start() create new empty session file and not resume existing session
ID: 16263 Comment by: pat at burnttech dot com Reported By: kur at natur dot cuni dot cz Status: No Feedback... -
Registering
I have an ASP.NET 2003 application taht is contains MSXML5.DLL in the reference list. SO far I have only seen this library available with Visio... -
Registering WMI Schema
Hi, Apologies first of all for the cross-post - not sure whether the wmi group is active... I'm developing an ASP.NET app that will be... -
[PHP] Some SESSION Vars not Registering
* Thus wrote Ow Mun Heng (ow.mun.heng@wdc.com): No that is incorrect. <snip session_register()> CAUTION: If you are using $_SESSION (or... -
Some SESSION Vars not Registering
I have a function that assigns some session variables I need available during a user's visit. Oddly enough, as I assign about 7 variables, I... -
Curt Zirzow #2
Re: [PHP] Registering Session
* Thus wrote Ralph Guzman (ralph@nqionline.com):
You did read all the documentation on session_register right? I> I have a shopping cart checkout form where I am using GET to specify
> payment method from payment_method.php page.
>
> So I have something like the following:
>
> From payment_method.php the user chooses payment method by clicking on a
> payment link that then send them to the checkout_form.php
>
> checkout_form.php?form=cc for credit card
> checkout_form.php?form=ch for credit check
> checkout_form.php?form=ph for phone
>
> since checkout_form is broken down into multiple forms, I am using
> session_register to set form type in checkout_form.php
>
> $form_type = $_GET['form'];
> session_register('form_type');
>
> The problem is that at times it registers $form_type properly as 'cc,
> ch, or ph', but other times it registers $form_type as 'Object'.
would avoid using session_register because of its ability to be
dangerous. Instead use the $_SESSION[] method of using session.
session_start();
$_SESSION['form_type'] = $_GET['form'];
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
Curt Zirzow Guest



Reply With Quote

