I simple use this to create my sessions:
Code: Select all
session_name("Company-DB");
session_start();
This has worked fine, but every once in a while, it will fail to connect to the mysql data base. This means any work is lost, and you need to start the whole thing over again. This seems to happen after a bit of inactivity. However, if you open another browser window and visit other sites, it can drop your session after just a few minutes. This only occurs once a week or so, but can be very annoying when it does. It happens with Safari, IE, and Firefox.
Would creating a time limit prevent this from happening? Would modifying the .ini file help? If so, how?
Any help or comments would be appreciated.
--Dave