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

How do you destroy a particular or all Sessions?

659


What is the use of hooks?

622


What is the use of get and post method in php?

632


How to download file in php?

630


armstrong number by using php while number is given by the keyboard.?

1773






Which php framework is best?

614


What does $_cookie mean?

614


Why php is sometimes called as embedded scripting language?

573


Echo is used to Display message on screen. Which is used with echo to not output the trailing newline?

660


How can I convert ereg expressions to preg in php?

566


What is $_ request?

602


How do I use isdigit function?

645


How do I escape data before storing it into the database?

604


Tell me is it possible to protect special characters in a query string?

568


Explain the difference between $var and $$var?

609