473,396 Members | 1,678 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,396 software developers and data experts.

Session Timout Help

2
Hi all,
I'm kind of new here and I realy need your help guys.
I have done an basic php login script with sesions that will expire after default time. The thing is that it dosen't work at all. If you login the session nevere expire. If I check the time with print ini_get("session.gc_maxlifetime"); it says 1440 and if I change it to 1 with ini_set("session.gc_maxlifetime", "1"); the chenge is noticed but the session still exists!!! What have I done wrong?

The function looks like this:
function session_start_manager()
{
ini_set("session.gc_probability", "1");
ini_set("session.gc_divisor", "2");
ini_set("session.gc_maxlifetime", "1");
session_start();
//print ini_get("session.gc_maxlifetime").'<br>';
}

Thanks
//A
Apr 18 '07 #1
1 1532
Motoma
3,237 Expert 2GB
Are you using COOKIES to store your SESSION? If so, you will want to set your session.cookie_lifetime to an appropriate value.
Apr 18 '07 #2

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

Similar topics

6
by: Nedu N | last post by:
Hi, I am trying to design a Home page for my applicatiion in which i want show the links for for some itms... I tried to put the following <td> <font face="Arial, Helvetica, sans-serif" ...
1
by: Jennifer | last post by:
Hello everybody my ASP.NET app is running fine on my development system. But some errors occured after installation on another server. I believe the reason is a session timeout My question is...
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...
18
by: Rippo | last post by:
Hi I am using role base forms authentication in asp.net and have come across a problem that I would like advice on. On a successful login a session variable is set to identify a user. This is...
2
by: LiliA | last post by:
Hello everyone, I have a problem I have no idea why it happens. I have an ASP.NET application that has around 7 forms. To move from one form to another I use "redirect". I also use around 12...
1
by: bhasky | last post by:
We have two production server, Prod server 1 giving error Session Timout before 90min where it has been set 90 in global.asa Differences Prod Ser 1 : Windows 2003, No Service Pack Installed...
14
by: GaryDean | last post by:
The web.config in my asp.net application, running on Server2003, has this entry: <sessionState mode="InProc" timeout="40". In IIS the asp.net State Management timeout setting is 40 for my website....
2
by: =?Utf-8?B?bWF2cmlja18xMDE=?= | last post by:
Hi, I have an application which is using Form Authenticatoin. I have set the timout to 120 (minutes). Does the sessionState setting in the web.config effect it? If I leave the sessionState...
7
by: anithaapr05 | last post by:
Hi, I am creating a session when user successfully login to the site and user gets a form to input some data into database. Assume that user entered data into some fileds and let the browser...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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.