473,776 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't relogin to site - apparently, it's PHP's fault! What do I tell them?

Rather than me explain the problem, read this exchange of emails between my
web host and myself, then tell me what I can tell them!

I had a problem with their admin site all day, and after me saying "can't
log in", and them saying "nothing wrong", I sent the following:

------------------------------------------------------
Found it! Tried it with 3 browsers now (IE, Opera, Firefox), and the
result is that I've just discovered a problem with your site...
It sets a cookie, PHPSESSID, with a value. If I get timed out or log out,
I cannot log in again.
If I delete that cookie, I can.
Try this: login, log out, try and log in again - doesn't work.
Close window, try and log in again. - works.
In other words, no matter what browser, you cannot log into the site again
once logged out. ------------------------------------------------------

To which they replied

------------------------------------------------------ Hi
We already know that the Members Area works in this way.

As you say, we are using a PHP Session ID and this is the way they work.

Nobody else has reported that this is a problem for them.

I guess in due course, it may be something that PHP themselves might want
to
look into.

------------------------------------------------------

Now if that isn't passing the buck, I don't know what is!!
Jul 17 '05 #1
3 1627
Jonathan wrote:
Rather than me explain the problem, read this exchange of emails between my web host and myself, then tell me what I can tell them!

I had a problem with their admin site all day, and after me saying "can't log in", and them saying "nothing wrong", I sent the following:

------------------------------------------------------
Found it! Tried it with 3 browsers now (IE, Opera, Firefox), and the result is that I've just discovered a problem with your site...
It sets a cookie, PHPSESSID, with a value. If I get timed out or log out, I cannot log in again.
If I delete that cookie, I can.
Try this: login, log out, try and log in again - doesn't work.
Close window, try and log in again. - works.
In other words, no matter what browser, you cannot log into the site again once logged out.

------------------------------------------------------

To which they replied

------------------------------------------------------
Hi
We already know that the Members Area works in this way.

As you say, we are using a PHP Session ID and this is the way they work.
Nobody else has reported that this is a problem for them.

I guess in due course, it may be something that PHP themselves might want to
look into.

------------------------------------------------------

Now if that isn't passing the buck, I don't know what is!!


Tell them that they are unarguably talking nonsense. It is perfectly
possible (and normal) to design a site that one can log out from and
into at will without having to restart one's browser. This includes
time-out occurrences.

However, it *is* normal behaviour for PHP session cookies to remain on
your computer until you close the browser. But this should not affect
things.

Unless something is wrong with your browser, then it they who are at
fault. If they don't believe this, then try the demo I've made at
http://olifilth.co.uk/01.php (see the script at
http://olifilth.co.uk/01_script.php).

Do you have a link that we could see this behaviour at, by any chance?

--
Oli

Jul 17 '05 #2
What is their problem?

Why can't you log in if you have a cookie on your computer?

Even though I don't see why you aren't allowed to have that cookie,
that wouldn't have to be a problem because they could destroy that
cookie when you log out and it should automatically be destroyed when
you time out...

Jul 17 '05 #3
Jordi wrote:
What is their problem?

Why can't you log in if you have a cookie on your computer?

Even though I don't see why you aren't allowed to have that cookie,
that wouldn't have to be a problem because they could destroy that
cookie when you log out
They could do, but it could still work even if they didn't (see the
example in my post above).
and it should automatically be destroyed when you time out...


No, it shouldn't. The record of the session will be destroyed at the
*server*, but session cookies on the *browser* are generally set to
expire when the browser is closed.

--
Oli

Jul 17 '05 #4

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

Similar topics

4
39508
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 I can do these two things then I can store the session id for a user in a database and everytime he requests an action I can just check if the session id is active or expired. If active let him continue if expired request to relogin. If the...
1
1764
by: Tony | last post by:
I cant get php to work on soalaris 8 when I start apache: Apache/1.3.27 (Unix) PHP/4.3.2 configured -- resuming normal operations but when I got to my test.php page: which is <?php phpinfo(); ?>
0
3603
by: wang xiaoyu | last post by:
Hello,everyone. my program runs well in windows,i use tkSimpleDialog to receive some input,but when i copy my program into Linux RH8.0,entrys in my tkSimpleDialog derived Dialog have a vital problem:only one entry can receive key event,'tab' key to navigate between entrys is not valid too,when i use mouse to focus a entry(which can not navigate through 'tag' key),no matter what key i pressed the entry receive no reply.But in window they...
1
5440
by: Robert Oschler | last post by:
I have two sites, both with valid P3P policies that passed the W3C P3P validator, including the P3P compliant HTTP headers test. On one of the sites, Site A, I have a web page that loads a document from Site B in an IFRAME. In this context the web page on Site A is the "originating" document and the web page on Site B is a 3rd-party document (since it's from a different domain). I thought that having a valid P3P policy would make IE6...
7
2576
by: Don NJ | last post by:
First my site name is Sinfullblisslingerie.com. I'm starting this little business to try and make some money on the side. My kids will be going to college in a few years... Anyway, in the past I have had some experience with html but now, my new site runs on php. It's a turnkey site that I purchased on ebay...(Yeah right...turnkey...) I've been submitting my site to search engines. On excite.com, when I bring up my site it shows...
24
5368
by: Paul | last post by:
I am taking over an existing app and having trouble understanding their references. They have encapsulated Pear packages in the directory structure like: /site /site/html/Pear.php /site/html/Sigma.php /site/html/Common.php /site/html/Quickform.php /site/html/Quickform/
4
1771
by: IDK | last post by:
I have the following code: <? #!/usr/bin/php-cgi -e $dbconn = pg_pconnect("host=localhost dbname=zerus ". "user=zuser password=1") or die('Could not connect: ' . pg_last_error()); pg_close($dbconn); echo "B"
9
7095
by: Gilles Ganault | last post by:
Hello I was looking for a lighter web server than Apache, and installed Lighttpd on CentOS through yum. It works fine, but I now need to use SQLite from a PHP script. I seem to understand that it can either be access directly, or through the PDO interface. Can you confirm that the RPM that I used will only allow me to work through PDO, and not the SQLite library directly, and which is more recommended?
1
4147
by: tietram | last post by:
hi i also have some problem to access web api my api taking arguments as an array but the correct request is not generated my code is like this<?php set_time_limit(3*60); /* * $Id: wsdlclient1.php,v 1.3 2007/11/06 14:48:48 snichol Exp $ * * WSDL client sample. * * Service: WSDL * Payload: document/literal
1
1815
by: cwdjrxyz | last post by:
Using GD imagefilledarc to fill in an arc drawn with php does not work, but imagefilledellipse works fine. The imagefilledarc is supposed to have worked since php version 4.06. I have version 4.3.11, so the version should be recent enough. If you will click on http://www.cwdjr.net/php/phpInfo.php , you will get a dump of php info from my host's server using phpinfo(). This confirms the php version. GD info is given, and the GD installed is...
0
9464
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
10289
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
8952
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...
1
7471
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6722
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
5367
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...
1
4031
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 we have to send another system
2
3622
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.