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

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 1599
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
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: 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...
0
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...
1
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...
7
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...
24
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...
4
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()); ...
9
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...
1
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:...
1
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.