Prevent session expired in PHP Session for inactive user

后端 未结 5 582
傲寒
傲寒 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

    How long a session cookie lasts is set when you create the session cookie. If you use the setcookie method, an argument of the method is the LENGTH for which you would like the cookie to last.

    Please refer to the PHP manual on the method for additional information: http://php.net/manual/en/function.setcookie.php

提交回复
热议问题