473,407 Members | 2,312 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,407 software developers and data experts.

Changing session logout times

I am working on a project using Dreamweaver CS3, and I am not very familiar with html or php code. Essentially I am trying to set something up so that a user is allowed to enter information into forms, but I would like to have a 3 hour session time. Does anyone know any code that would work?
I tried:
<?php
// Prolong session
session_cache_expire(10);
$cache_expire = session_cache_expire(10);
session_start();
?>

The number 10 was only for test purposes. So far it hasn't worked. If anyone has any suggestions, I would greatly appreciate it.
Dec 20 '07 #1
1 1558
I am working on a project using Dreamweaver CS3, and I am not very familiar with html or php code. Essentially I am trying to set something up so that a user is allowed to enter information into forms, but I would like to have a 3 hour session time. Does anyone know any code that would work?
I tried:
<?php
// Prolong session
session_cache_expire(10);
$cache_expire = session_cache_expire(10);
session_start();
?>

The number 10 was only for test purposes. So far it hasn't worked. If anyone has any suggestions, I would greatly appreciate it.
Hi,
Here is a simple idea about it.
check it out please.

http://www.melbournechapter.net/word...ssion-timeout/
Happy Programming!
:)
Dec 21 '07 #2

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

Similar topics

4
by: Murray Foxcroft | last post by:
Hi all, My client, bless his soul, wants to know how long users of his ASP.NET web application (written by yours truly) spend logged in to the system. Now, I can log when he logs in, no problem,...
1
by: Random | last post by:
I have an <asp:LinkButton runat="server" id="btnLogin"/> control that I use in my page header for login/logout link. Depending on the session state when the page loads, I set the .Text and...
0
by: js | last post by:
In my project I have both ASPX and classic ASP. Four things in question are the entry page(Main.aspx), the logon page(logon.ASP), .Net Session, legacy ASP Session. The Main.apsx contains a Logon...
4
by: ad | last post by:
I use the Login controls of Asp.net 2.0 in my program. I want to logout a user by program, I try Session.Abandon() for this. But I found that the user is the same after I execute Session.Abandon()....
4
by: =?Utf-8?B?Rmxhc2hNZXJsb3Q=?= | last post by:
We're using C# & VS 2005. In our app ... someone is "logged-in" if Session("companyID") exists and is non-zero. How do we implement a "Logout" button that signs off session, sets...
1
by: gnewsgroup | last post by:
I am using forms authentication for a web application. Like many other member web application, my web application prints out Welcome! John Doe (Logout) on the top right corner of each...
1
Ajm113
by: Ajm113 | last post by:
I find it odd all my scripts doesn't change the logged in person's name on any other page, but my threads page. I have no idea why! I looked over the script and saw nothing changing the session...
3
by: Mufasa | last post by:
Folks, I'm having problems with my session timeout. People using my website leave it just sitting there while they do other things. They have logged in ( using Forms Authentication ) and will be...
6
by: Thiago Macedo | last post by:
I could not find on the web a complete solution for this task. This is not the perfect solution, because it's doesn't have the ability to log the logout if browser crash or user leave it open while...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.