Prevent session expired in PHP Session for inactive user

后端 未结 5 577
傲寒
傲寒 2020-12-05 03:17

I have a problem with my application: my application has many forms and need about 1 hour to finish this form because the form is dynamic (can add other forms). The problem

5条回答
  •  抹茶落季
    2020-12-05 03:40

    Instead of setting the time in ini to a fixed length, remind that session timeout is reset on reload. So create some ajax code that does a request every 5 minutes or so to a file (image or smth). This way the timer is reset every 5 minutes and users can spend a day filling out your forms.

提交回复
热议问题