note 108994 added to function.session-start
| From: | ManuelCarracedo | Date: | Mon, 11 Jun 2012 08:51:02 +0000 |
| Subject: | note 108994 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188524@lists.php.net to get a copy of this message | ||
Hi,
I have a huge problem with session_vars and mobile 3g connections.
We have a virtual campus that is accessed with username and password. On every page verifies that
the user is logged with the following code:
<?PHP session_start();
//Avoid not logged users
if ($_SESSION['auth']!=true)
{
session_unset();
header('Location:index.php'); // login page
exit;
}
When a user tries to download a file and uses a 3G connection, sometimes loses its session variable
that identifies who is logged in, and send the user to the login page.
We have tried and fail to reproduce the error. We assume that may depend on the conditions of the 3G
connection.
All users who use a dongle 3g fails with a laptop.
----
Server IP: 130.206.1.5
Probable Submitter: 147.83.53.232
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/108994
Del: integrated -- https://master.php.net/note/delete/108994/integrated
Del: useless -- https://master.php.net/note/delete/108994/useless
Del: bad code -- https://master.php.net/note/delete/108994/bad+code
Del: spam -- https://master.php.net/note/delete/108994/spam
Del: non-english -- https://master.php.net/note/delete/108994/non-english
Del: in docs -- https://master.php.net/note/delete/108994/in+docs
Del: other reasons-- https://master.php.net/note/delete/108994
Reject -- https://master.php.net/note/reject/108994
Search -- https://master.php.net/manage/user-notes.php