How to increase session life time using PHP?

Answer Posted / pcoder

use
ini_set(’session.gc_maxlifetime’, ‘28800′);// Set
maxlifetime to 4 hours

Is This Answer Correct ?    19 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps for the payment gateway processing?

536


Steps for the payment gateway processing?

551


How does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

507


What is namespace in php?

549


What are the encryption functions in php?

559






What is the correct php command to use to catch any error messages within the code?

568


What is php form validation?

548


Explain what are the two main string operators?

506


What is use of echo in php?

475


How arrays are used in php?

548


How many open modes available when a file open in PHP?

647


Can you define an array argument as a reference type?

505


What are sql functions?

534


What is sticky form in php?

497


Is python similar to php?

540