473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Can I change session timeout intervals?

Hi Everybody.
The problem is... my site is redirecting to Login page when i do nothing in my page (keeping it idle) for about 20-25 mins.
What is the Default timeout period for sessions?.
May 30 '07 #1
4 7868
ak1dnar
1,584 Expert 1GB
Hi Everybody.
The problem is... my site is redirecting to Login page when i do nothing in my page (keeping it idle) for about 20-25 mins.
What is the Default timeout period for sessions?.
Try to find out these lines from your php.ini file. and change the value to increase the session time out.make sure to restart the machine if you need to test.

Expand|Select|Wrap|Line Numbers
  1. ; After this number of seconds, stored data will be seen as 'garbage' and
  2. ; cleaned up by the garbage collection process.
  3. session.gc_maxlifetime = 1440
May 30 '07 #2
pbmods
5,821 Expert 4TB
What is the Default timeout period for sessions?.
PHP does run garbage collection on session files every 1440 seconds*, so that might be why you're having difficulties. This can be changed by setting session.gc_maxlifetime in your php.ini file.

*this is technically an oversimplification. Actually, the garbage collection process is run approximately 1% of the time whenever a page is loaded (configurable in php.ini), and it will remove all session files that have a modification date older than session.gc_maxlifetime seconds ago.
May 30 '07 #3
pbmods
5,821 Expert 4TB
You posted this in the PHP articles section (despite a HUMONGOUS sign that said DO NOT POST QUESTIONS HERE).

I'm moving it to PHP forums and merging it with your cross-post.
May 30 '07 #4
Hi Everybody.
The problem is... my site is redirecting to Login page when i do nothing in my page (keeping it idle) for about 20-25 mins.
What is the Default timeout period for sessions?.

hey hieee..
in my site i want that page should redirect to homepage when i do nothing in that page (idle) but session dosent get expired...
can u plzz send me the logic of ur code where u get redirected to another page

thanks
Feb 20 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jason | last post by:
I've got a standard form on an ASP page to collect resumes from visitors. The page can be accessed only after the visitor has logged into the site. The issue that I'm running into is that the users...
12
by: Jim | last post by:
The dreaded Session state :-) All, Just to give a little background this is reagarding an ASP 3.0 application running on IIS6 using the default app pool. I have set the session timeout to 540...
12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
8
by: Joe Abou Jaoude | last post by:
hi, I have a web app with forms authentication and a timeout session of 20 mins for security reasons. I recently added a feature that allows users (if they want to) to automatically log in...
5
by: Just D. | last post by:
Do we have any access to the Session object from a different Session? The idea is to save Session of a current user and then if he logs in again then return the Session back. It's not a problem to...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
2
by: Tomas Martinez | last post by:
Hi, Well, my problem is so simple as it says in the subjet but very frustrating also. I have a project and it is losing the session variables with each postback, so I downloaded from the web a...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
6
by: ChrisAtWokingham | last post by:
I have been struggling with unexpected error messages on an ASP.NET system, using SQL and C#. The application draws organisation charts, based on data stored in the SQL database. Some of the chart...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.