473,511 Members | 16,888 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

session cookie persisting

I'm trying to recreate my RFDMaker in PHP.

I've decided to do it in a series of steps, using sessions. With
cookies turned off it works fine (I've only done the first three steps).
The session ID is passed in the url so the user can go forwards and
backwards.

However, with cookies on, the session persists even if I close the
browser. I thought that, unless specified otherwise, cookies only
persisted while the browser was open.

Am I missing something or is it my machine/setup? Could someone test it
for me?
http://www.ckdog.co.uk/php/rfdsesh/rfdmaker.php
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #1
2 1990
On Sun, 21 Dec 2003 11:16:00 +0000, Geoff Berrow <bl******@ckdog.co.uk> wrote:
I'm trying to recreate my RFDMaker in PHP.

I've decided to do it in a series of steps, using sessions. With
cookies turned off it works fine (I've only done the first three steps).
The session ID is passed in the url so the user can go forwards and
backwards.

However, with cookies on, the session persists even if I close the
browser. I thought that, unless specified otherwise, cookies only
persisted while the browser was open.

Am I missing something or is it my machine/setup? Could someone test it
for me?
http://www.ckdog.co.uk/php/rfdsesh/rfdmaker.php


I get a new session after closing and reopening in IE6, but Mozilla 1.4 claims
to have received a 7-day permaenent cookie instead of a browser session cookie
and so continues the session.

What values do you have in php.ini for the session options?

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2
I noticed that Message-ID: <o6********************************@4ax.com>
from Andy Hassall contained the following:
Am I missing something or is it my machine/setup? Could someone test it
for me?
http://www.ckdog.co.uk/php/rfdsesh/rfdmaker.php
I get a new session after closing and reopening in IE6, but Mozilla 1.4 claims
to have received a 7-day permaenent cookie instead of a browser session cookie
and so continues the session.

Hmm, I have IE6 but it persists for me
What values do you have in php.ini for the session options?


This bit?
session.cache_expire 180 180

Is that minutes? seconds?
You can see the full thing here:
http://www.ckdog.co.uk/php/phpinfo.php

I've added a reset link that calls session_unset and session_destroy
that seems to do the trick but I'd still like to know why the session
persists.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #3

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

Similar topics

1
5762
by: Dax Westerman | last post by:
I have a site that I'm trying to migrate to ASP.NET from ASP, and the foremost stumbling block I'm hitting is session state between the ASP and ASP.NET applications. In order to access this...
0
1431
by: me | last post by:
If I start a session on our web app then close all browsers, I expect that the session cookie would be deleted and that the session itself would exist until it expired. I then start a new instance...
6
266
by: Jim Douglas | last post by:
I am starting the analysis and design on how we are going to handle session data. We are on a large web-farm which limits our solutions. The best solution is persisting to MS SQLServer but I'm not...
14
1853
by: qaz | last post by:
I've always used session cookies in my web sites. However, since more and more people (including me) are starting to disable cookies, I'm beginning to think that I should change my ways and design...
3
2235
by: Ben | last post by:
Hi, I'm sending out a session cookie. That is a cookie that has no expiration date. When I surf through the site, no problems, but if I close the browser and open it back up, the cookie is still...
9
5291
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
16
1807
by: Jonathan Wood | last post by:
Greetings, I was wondering if anyone here has a good understaning of the Session object. I know there are options like the Session.Abandon method and the regenerateExpiredSessionId setting,...
3
1127
by: r | last post by:
Hello all I have a website that each user has it's profile. I use Session object for having their states for example the user has logged on or not.. Is there a better way to do this? thanks in...
0
7242
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
7510
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...
0
5668
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,...
1
5066
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
4737
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
3225
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
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
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 ...
1
781
muto222
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.