By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,254 Members | 2,477 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,254 IT Pros & Developers. It's quick & easy.

Changing session logout times

P: 1
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
Share this Question
Share on Google+
1 Reply


Ranjan kumar Barik
P: 95
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

Post your reply

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