This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

your session has been expired


  1. slayaz
    Member

    HI

    I have a form that is quite long, I can fill it in before the session expires, but people still seem to having problems with it.

    I have spoken to my webhost about this and they have increased the time in the php.ini file to their maximum level which is 300secs.

    if this still proves to be not long enough, is there anything i can do?

    I though about a 2 stage form, but I am not sure machform supports this, or if i did 2 separate forms, how i would then tie them together.

    Any help or ideas would be much appreciated.

    Posted 15 years ago #
  2. yuniar

    Can you let me know the URL to the page where you embed the form please?
    Or if you don't want to post it here, you can send via email: customer.service [at] appnitro.com

    We'll check it.


    MachForm Founder

    Posted 15 years ago #
  3. slayaz
    Member

    Hi,

    Thanks for your reply.

    The form is at:

    http://gimmefiveandfly.com/booking.php

    many thanks!

    Posted 15 years ago #
  4. yuniar

    It seems you are using the advanced form code. The above error message is pretty common in this case.

    The solution is quite simple.
    Edit your booking.php file, at the beginning of the file (line 1) add this code:

    <?php session_start(); ?>

    That should solve the session issue.


    MachForm Founder

    Posted 15 years ago #
  5. slayaz
    Member

    Wow, thanks for that!

    Do you mean real line 1? I.E. Before doc type?

    Posted 15 years ago #
  6. yuniar

    yes, real line 1, before any other code.


    MachForm Founder

    Posted 15 years ago #
  7. slayaz
    Member

    brilliant, thanks!

    It works perfectly

    Posted 15 years ago #

RSS feed for this topic

Reply