Appnitro Software Forums » MachForm

[closed] Regarding session expired.

(6 posts)

  1. MvdL79
    Member

    I don't know if this can be fixed, however I am still going to ask.

    Whenever someone hits the back button on their browser when completed a form, they get the message "Your session has been expired. Please start again." which of course is great for not receiving duplicate entries, it causes one "small" problem with my forms.

    The website's design breaks down. It does not load the rest of the page after that line. Probably cause of the string which is used. Is there not another way, with still showing the expired message, but ALSO load the rest of the page (design)?

    Posted 3 years ago #
  2. MvdL79
    Member

    It seems I cannot fix this by myself... :(

    Posted 3 years ago #
  3. Which form code do you use?

    The standalone form (view.php) or the iframe form (embed.php) or the advanced form?

    Posted 3 years ago #
  4. MvdL79
    Member

    Advanced form... :)

    Posted 3 years ago #
  5. Edit machform.php file, search around line 198 - 203:

    if(empty($_SESSION['review_id'])){
    	die("Your session has been expired. Please start again.");
    }else{
    	$record_id = $_SESSION['review_id'];
    }
    $markup = display_integrated_form_review($form_id,$record_id,$machform_path);


    replace the above code with this one:

    if(empty($_SESSION['review_id'])){
    	$markup = "Your session has been expired. Please start again.";
    }else{
    	$record_id = $_SESSION['review_id'];
    	$markup = display_integrated_form_review($form_id,$record_id,$machform_path);
    }


    let me know how it goes.

    Posted 3 years ago #
  6. MvdL79
    Member

    Thanks once again for the quick answer.

    It seem to does exactly what I want! Thanks. :)
    I think I am completely done with the forms! :)

    Keep up the good work!

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.