473,800 Members | 2,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to expire an idle php page after some minutes

28 New Member
Hi,

I have created a site with admin pages. I wish to expire this php admin page , if it is idle in 10 minutes. Is there is any method to implement this using session variables in php?

Thanks in advance
Benoy
Dec 19 '07 #1
2 4747
MarkoKlacar
296 Recognized Expert Contributor
Hi,

to answer you question correclt you need to define what you mean by idle.
What you can do is look at the sleep function, sleep for 600s and then redirect the page. It's up to you.

Good luck
Dec 20 '07 #2
Ranjan kumar Barik
95 New Member
Hi,

I have created a site with admin pages. I wish to expire this php admin page , if it is idle in 10 minutes. Is there is any method to implement this using session variables in php?

Thanks in advance
Benoy
Hi,
Just check these out.
http://www.thescripts.com/forum/thread556290.html
http://www.thescripts.com/forum/thread2477.html

Happy programming!
:)
Dec 20 '07 #3

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

Similar topics

1
2007
by: Jack Schafer | last post by:
I am trying to download the source code for an array of differant websites, usually i will get something like this from Dilbert.com: HTTP/1.1 200 OK Date: Fri, 23 Apr 2004 00:04:54 GMT Server: Apache/1.3.27 (Unix) Resin/2.1.s030505 mod_ssl/2.8.14 OpenSSL/0.9.7b Last-Modified: Thu, 22 Apr 2004 07:05:10 GMT ETag: "182ba6-9d7b-40876ea6" Accept-Ranges: bytes
1
1458
by: Brian Patrick | last post by:
I've searched the net for ways to expire a page immediately, so when the user hit 'Back', they receive the "Page Has Expired" error page and I've seen a number of posts on how to do it - with the code below: <% Response.ExpiresAbsolute = #1/1/1980# Response.AddHeader "cache-control", "no-cache" Response.AddHeader "pragma", "no-cache" %>
0
1177
by: bettina | last post by:
My Website works pretty good, except when it remains some minutes open without that any click will be made. For example, I'm in breweries.php (a subpage from index.php) and I make nothing except perhaps scrolling. After around 5 minutes I want to go back to the previous page or to the following and I receive the following message: Warning: main(lang..inc.php): failed to open stream: No such file or directory in...
19
46688
by: Frank Rizzo | last post by:
I want to log the user out when there has been a period of inactivity in the application. The key here is inactivity of the application, not the system. I know that you can retrieve the inactivity of the system via GetLastInputInfo. That's not what I want - I want inactivity of the application. Thanks.
1
1846
by: NWx | last post by:
Hi, I implement forms authentication in my application. So I have a login form. Actually I have two custom Web controls, one to login and one to redirect user to Register page Login custom control perform some client-side validation if username or password are empty
2
5363
by: Sonia | last post by:
Hello, My development enviroment is ASP.Net and Frame work 1.1. After procesing data in certain pages the user can navigate back to the previous page by clicking back button. I would like to expire the page when the user hits the back button. What is the exact statement which does that? Where I have to code that?
15
10995
by: dee | last post by:
Hi, What is the maximum number of minutes for Session timeout that I can specify in web.config? Thanks. Dee
1
2180
by: ARAVIND999 | last post by:
PLEASE SEND THE SOURCE CODE FOR THE ABOVE MENTIONED STATEMENT.(i.e., HOW TO EXPIRE THE PAGE WHEN BACK BUTTON IS PRESSED)
13
12360
AnuSumesh
by: AnuSumesh | last post by:
Hi All, We r developing web application in asp.net using c#. we r using IIS7.0 and windows vista for development. I m using windows authentication and "local Sytem" Identity. I want that if user is not accessing site for 5 minutes(means browser is idle for 5 min) , after 5 min. when user clicks on any link, his session should be expired and he has to provide login credentials again. I have tried using <sessionState...
0
9551
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10276
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10035
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.