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

How to set the SESSION EXPIRE TIME ?

Anyone knows how to expire a session after a specific time for a specific
SITE and not globally ?

I want if the user forgets his browser window open to automatically expire
the session after 20 mins more or less....
Jul 17 '05 #1
2 22854
Angelos wrote:
Anyone knows how to expire a session after a specific time for a specific
SITE and not globally ?

I want if the user forgets his browser window open to automatically expire
the session after 20 mins more or less....

www.php.net/session explains something you could use for ini_set or even
a .htaccess file for your site.

Mike
Jul 17 '05 #2
Angelos wrote:
Anyone knows how to expire a session after a specific time for a
specific SITE and not globally ?
In addition to earlier comments by others, you should also check my earlier
post on thelist about the subject, and especially PHP's builtin garbage
collection:
http://lists.evolt.org/archive/Week-...02/172168.html

I want if the user forgets his browser window open to automatically
expire the session after 20 mins more or less....


Actually the default value is 24 minutes.

--
Suni
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ryan Hubbard | last post by:
I would like to limit multiple logins for a user. How and when does the session id expire? Can I set it so after x minutes of inactivity it would expire. How do I check if session id exists? If...
1
by: Carlos Marangon | last post by:
Hello! Can anyone please tell me how can I do to a session expire aftetr 30 seconds? And where can I find a working demo? Best regards, carlos
0
by: Angelos | last post by:
Hello there... I would like to know how to set the session timeout time locally and not globally in the php.ini file. I do that as it is ine www.php.net but doesn't seem to do anything...
6
by: David Graham | last post by:
Hi I have asked this question in alt.php as the time() function as used in setcookie belongs to php - or does it belong equally in the javascript camp - bit confused about that. Anyway, can anyone...
1
by: Ivaylo Guberov | last post by:
Hi Can anyone give me advise about following topics: 1. I want to trace user log in and log out time in my asp.net web application? I can easely handle moment of log in and to store in...
2
by: karunakar | last post by:
Hi All I dont want to expire the applicatoion Once login the application i dont want to expire the application Presently iam doing using cookies this is not working fine Please help me out ...
1
by: gvrajkumar | last post by:
Hi Popup window is opened and after some time session has expired. After session expire, if the user tries to make any actions on the popup page the user is redirected to login.jsp page. What...
1
by: ljayz | last post by:
i want my script to automatically expire session in a given period of time e.g 5mins (as a test). my problem is when ive set session_cache_expire(5); in my script, run it and wait for about 6-10mins...
2
by: Ben | last post by:
Hi, i use the login control with the option "remember me next time". What's the default expire time and is it possible to change it? Thanks Ben
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.