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 977637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:56:00+00:00 2026-05-16T03:56:00+00:00

First, yes i know this is a big security NONO . But the scenario

  • 0

First, yes i know this is a big security NONO. But the scenario is this;

In the checkout of a webshop i use a payment-gateway, which can proxy my checkout form through their SSL.

(following url’s is just the theory, other urls apply for the application)

The way it works, website redirects user to their https://gateway.org/secure-tunnel.php passing a url in the query like this ?url=http://myshop.com/cc-form.php <- needs to be urlencoded.

The secure-tunnel requests the url – sprinkle some magic on url in the document – and shows it to the user.

Now i want to pass the session ID to the cc-form.php url, and got that part working. BUT the requested page don’t pick up the session ID that is passed.

Any ideas on that?

The following is from my application.ini

resources.session.name = UPSSESSID
resources.session.save_path = APPLICATION_PATH "/../data/session"
resources.session.use_only_cookies = off
resources.session.referer_check = off
resources.session.remember_me_seconds = 864000

Also while researching i found that the Suoshin extension could be causing some problems, so i have added this to the .htaccess

php_flag suhosin.session.cryptua off

I use a route to my payment form

$this->_helper->url->url(array(session_name() => Zend_Session::getId()), 'payment')

EDIT: Possible, rather dodgy solution

I actually managed to restore the session by inserting this to _initApplication() in my bootstrap file. It’s rather dodgy, so if anyone knows of a better – more ZF’ish – way please advice!

    if(isset($_GET[$appConfig->resources->session->name])) {
        session_id($_GET[$appConfig->resources->session->name]);
    }

EDIT: DOH!

Well.. turns out previous edit is not needed. Just before i added the previous lines to the bootstrap i also changed the url layout.

Changed it from /pay/UPSSESSID/{session-id-here} to /pay?UPSSESSID={session-id-here} – And that was actually the root of the problem 🙁

Now i have removed the lines from the bootstrap and the sessionId i restored correctly.

My mistake!

  • 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-16T03:56:01+00:00Added an answer on May 16, 2026 at 3:56 am

    PHPSESSID can not – by default – be passed as part of a URL-rewrite.

    ?PHPSESSID={session_id}-format solved my problem.

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

Sidebar

Related Questions

First, yes I know about this question , but I'm looking for a bit
First of all, I know how to build a Java application. But I have
I know this is probably a very simple question, but I can't seem to
Yes, I have already asked this question, but the problem is much more specific.
First, let's get the security considerations out of the way. I'm using simple authentication
First off, there's a bit of background to this issue available on my blog:
First let me say that I really feel directionless on this question. I am
First time poster. I'm using MVVM-Light with Silverlight 4 and RIA Services. This has
Before you tell me that there is already a similar question, yes, i know,
This is related to this question here, but with a slight twist: instead of

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.