Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to increase session life time using PHP?

Answers were Sorted based on User's Feedback



How to increase session life time using PHP?..

Answer / swapna

increase session life time in php.ini.session_time_limit().

Is This Answer Correct ?    32 Yes 11 No

How to increase session life time using PHP?..

Answer / ram

Increase session.gc_maxlifetime in php.ini file from 1440 to
18000 (5 hrs) and restart the webserver.

Is This Answer Correct ?    21 Yes 3 No

How to increase session life time using PHP?..

Answer / pcoder

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

Is This Answer Correct ?    19 Yes 9 No

How to increase session life time using PHP?..

Answer / raheem

You can. just open php.ini file and change
session.cookie_lifetime = 0

Is This Answer Correct ?    16 Yes 9 No

How to increase session life time using PHP?..

Answer / puneet bhatt

If you want to increase the lifetime of sessions on your
server, you need to edit the php.ini file which is usually
found in the /etc/ directory, but it may be different on
your server.

Is This Answer Correct ?    8 Yes 7 No

How to increase session life time using PHP?..

Answer / santosh

session.gc_maxlifetime = 1440

Is This Answer Correct ?    0 Yes 0 No

How to increase session life time using PHP?..

Answer / pankaj

set_time_limit(0);

Is This Answer Correct ?    6 Yes 9 No

How to increase session life time using PHP?..

Answer / amit tiwari

The PHP global setting sessions.gc_maxlifetime is used by
default. You can increase session life time by adding a line
such as:

$SESS_LIFE=7200;

to set it to two hours.

Is This Answer Correct ?    7 Yes 23 No

Post New Answer

More PHP Interview Questions

Are php short tags acceptable to use?

0 Answers  


Explain the advantages of using PHP?

0 Answers  


Which php framework is best for beginners?

0 Answers  


What is difference between strstr() and stristr() in PHP?

0 Answers  


How arrays are used in php?

0 Answers  


What is the use of $_server and $_env?

0 Answers  


Explain the difference between mysql_connect and mysql_pconnect?

0 Answers  


What is the difference between $var and $$var?

0 Answers  


Why print_r is used in php?

0 Answers  


What is the use of htmlentities in php?

0 Answers  


Explain about require and include function?

0 Answers  


What is the meaning of xdebug?

0 Answers  


Categories