473,472 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Indefinite session?

What is the easiest way to set up a session that only expires when the
browser is closed?
Feb 10 '08 #1
2 1531
On Feb 10, 12:40 am, turnitup <same@samewrote:
What is the easiest way to set up a session that only expires when the
browser is closed?
session_set_cookie_params(0);
Make sure to do this before session_start() is called. PHP defaults
to this session cookie lifetime unless it is changed in the ini file.
Feb 10 '08 #2
flowover wrote:
On Feb 10, 12:40 am, turnitup <same@samewrote:
>What is the easiest way to set up a session that only expires when the
browser is closed?

session_set_cookie_params(0);
Make sure to do this before session_start() is called. PHP defaults
to this session cookie lifetime unless it is changed in the ini file.
Thanks. Will give it a shot.
Feb 10 '08 #3

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

Similar topics

6
by: Ge B | last post by:
Hi, New to PHP, I was trying to figure out how to make such a form: Data: When I enter a data and click the button, the data gets added to a list (and preferably the updated list is...
2
by: Nad | last post by:
Hello All, I have been trying to get some sort of documantion on how StreamReader.ReadToEnd() finds out if the stream has ended and if anyone can read the following lines and tell me how to...
1
by: Oleg | last post by:
can I have session timeout set to indefinite? Minding that I run it on 2003 server. Oleg
0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
3
by: PengYu.UT | last post by:
I quickly searched the group. Like the post said, it is not possible to specify indefinite number of arguments. ...
6
by: PengYu.UT | last post by:
I the build-in int type has limited representation range. I'm wondering if there is any class which can represent arbitrarily long integer like what Mathematica does? Thanks, Peng
14
by: aroraamit81 | last post by:
Hi, I am facing a trouble. I have some Session variables in my code and somehow my session variables are getting mixed up with other users. For example User A has access to 10 companies and...
5
by: lyealain | last post by:
<% If Session("username") = "" Then Response.Redirect("/CLS/Login.asp") End If Dim conn Dim connectstr Dim db_name, db_username, db_userpassword Dim db_server Dim res
4
vikas251074
by: vikas251074 | last post by:
Loop runs indefinite times. suppose v_router = 5 is entered by user, then following code runs indefinite times i.e. record is inserted indefinite times though each have different i and v_ip_address....
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
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.