Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2008, 01:42 PM
Authorized User
 
Join Date: Nov 2007
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Default session time out info

Is there a way of finding out the session time out for an application ? For short period one may test by just observing, but what if one has to test for a long period, say 120 minutes ? Do we have a session time out function available ? Any help would be appreciated, thanks.

 
Old August 22nd, 2008, 03:07 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

You want to look at the ini settings for sessions.

Code:
<?php
  echo ini_get('session.gc_maxlifetime');
?>
That outputs the default length of a session in seconds.

You can see settings for everything if you run this code.
Code:
<?php
  phpinfo();
?>
Session Configurations:
http://us.php.net/manual/en/session.configuration.php


--
http://www.deadmarshes.com
Author, Various Wrox Books





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session time out issue sameer_chandra Pro VB 6 1 July 31st, 2006 11:29 AM
Further Info regarding Run Time Error 3146 Bruce Sexton Beginning VB 6 3 March 30th, 2005 04:37 PM
session time out lily611 General .NET 10 August 9th, 2004 08:51 AM
unset session at specified time knight Beginning PHP 5 March 17th, 2004 09:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.