Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6866199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:09:09+00:00 2026-05-27T03:09:09+00:00

I am working on a purchase system in my assignment and trying to solve

  • 0

I am working on a purchase system in my assignment and trying to solve the problem by using a session to store data in the process.

Although I’m experiencing a problem in Mozilla Firefox, which cannot for some reason work with the session I have created. There’s most likely no doubt that I must have made some kind of mistake.

The process is as follows:

User fills form -> Clicks submit -> [Validation process] -> User reviews confirm page

Here is the relevant code from the controller:

public function indexAction() {
    $this->gatewayForm = new Payment_Form_Gateway;
    $save = $this->validate();

    $this->view->gatewayForm = $save['form'];
    $this->view->alert = $save['alert'];
}

public function validate() {
    # get form
    $form = $this->gatewayForm;
    if ($this->_request->isPost()) {
        # get params            
        $data = $this->_request->getPost();

        # check validate form
        if ($form->isValid($data)) {
            $session = new Zend_Session_Namespace('formData'); // name space creation
            $session->data = $data;
            $this->_helper->redirector('confirm', 'gateway', 'payment');
        } else {
            $alert = array('Pay failed');
        }
    $form->populate($data); 
    }
    return array('form' => $form, 'alert' => empty($alert) ? null : $alert );
}

public function confirmAction() {
    $this->_helper->viewRenderer->setNoRender(true); // disable std. view

    $session = new Zend_Session_Namespace('formData');
    $data = $session->data;             
    if(isset($data)) {
        $this->_helper->viewRenderer->setNoRender(false);
    } else {
        $this->_helper->redirector('index', 'gateway', 'payment');
    }
}

Things go wrong in the confirmAction in Firefox, the session namespace seems to be empty? Although this does not occur in Safari, Chrome, IE etc.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:09:10+00:00Added an answer on May 27, 2026 at 3:09 am

    I reinstalled Firefox and removed config and cache files which did the magic. Problems solved!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an invoicing system using C#, MySql and the EntityFramework. The problem
I´m working with a purchase process. The process consists of 4 steps. The first
I have created in-app purchase for non-consumable object application in iPhone using with store
I am working on this SQL problem: Show any purchase orders whose charged amount
I'm working on a site that allows users to purchase digital content and have
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
Given the following URL (working, try it!) https://select-test.wp3.rbsworldpay.com/wcc/purchase?instId=151711&cartId=28524&currency=GBP&amount=1401.49&testMode=100&name=Tom%20Gul&address=24%20House%20Road \nSome Place\nCounty&postcode=TR33%20999&email=email@mail.com&country=GB If you click on
I'm working on my first real MVC application and I'm trying to follow general
I'm working with some rather sensitive data, so I want to be ABSOLUTELY sure
We are working on designing an application that is typically OLTP (think: purchasing system).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.