in fact, the data is stored in a database, i will explain my problematic scenario:
the user needs to add the information of a new seller partner: name, age, sex, address, etc.
the user clicks in the option "new partner" and the form is open
the user start typing name and age "but" suddenly the boss call him, the chat takes 30 minutes, then the user goes to the bathroom, then goes to the candy machine, then calls to mom... and 90 minutes after he comeback to the desk...
continues typing sex and address then the user clicks on "continue button", what happens?
in the server side the newpartner.php calls to addpartner.php, this file at the beginning has this lines:
<?php
session_start();
if (@$_SESSION['autorizado'] !="yes")
{
header("Location: nologin.php");
exit();
}
else{
include("okus.php");
.....
so, the result the user got is: nologin.php and the data is lost!, because addpartner.php store the data in the database
so, why I think this happens:
- the session is timeout
- my gc_maxlifetime is too short (i think the default is 1440 seconds)
what I think I should do:
1. increase the value of gx_maxlifetime
why?
because if the user take the decision of start typing the data, make pause, and restart the typing 1 hour later, no matters what time, when it calls to addpartner.php the session is still active.
now, i know is a bad way to do this, but would you recommend me some better way?
regards