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

  • SEARCH
  • Home
  • 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 3946414
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:07:49+00:00 2026-05-20T01:07:49+00:00

Really hope this makes sense and someone can point me in right direction. On

  • 0

Really hope this makes sense and someone can point me in right direction. On a registration page (parent page), when you enter a license code a jQuery ajax success function loads content from another page with an appended url to include a session id:

success: function(data) {
    if (data=="RegisterError") {
        $("#error").show();
        $("#processing").hide();
    } else {
        $("#contain").load("download-software.php?sessionid=xXXX #req");
        }
    }

The page “download-software” has the following PHP referrer check to make sure the content is being requested from the registration page via the session ID and redirects you if it’s not:

<?php
$code = $_GET['sessionid'];
if(strcmp( $code , 'xXXX'  ) != 0) {
    header("Location: http://www.someotherpage.com");
}
?>

That works fine. Now what I need to do is in the “download-software #req” content that is loaded into the parent page, have a link that when clicked replaces the “download-software #req” content which has been loaded inside the parent page with content from another page and do the same type of session id check.

I cannot get it to work. I place the following code on the “download-software #req” content for the
<a id="beta">beta notes
$(“#beta”).click(function() {
$(“#req”).load(“NT7-SP1-Download.php #betaNotes”);
});`

I’ve also tried using the .live function. How do I start a new session and make this work?
*answer**
I used the live function on the parent page and it works fine. Making it too hard i guess.

  • 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-20T01:07:50+00:00Added an answer on May 20, 2026 at 1:07 am

    I would refrain from using GET query string parameters and use the included PHP session functions.

    use:

    <?php
    
    // initialize the session 
    session_start();
    
    // assignment call
    $_SESSION['key'] = 'value';
    
    ?>
    

    You can retrieve data from the session on the same server in subsequent page requests.

    When you are done with the session, use: session_destroy()

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

Sidebar

Related Questions

This is really bugging me, so I hope someone can help me a bit
This really, really urks me, so I hope that someone can give me a
hope to get some help here because this is something that really makes me
I'm almost losing it, i really hope someone can help me out! I'm using
I have a really hard time understanding routes and I hope someone can help
I hope this makes sense. I have a Windows Phone 7 app that is
I hope this question makes sense. Basically, I am looking for a set of
I hope this makes sense. I'm using Java with the Slick2d library, that probably
I really hope this is not a question posed by millions of newbies, but
I really hope you can help out here. I'm creating a theme for a

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.