-
From: karthik [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 1:08 AM
To: Chad Day
Subject: Re: [PHP] Session problem
Hi,
Have u tried $HTTP_SESSION_VARS[NAME] ?
Try it. I am sure it will work.
Karthik
- Original Message -
From: Chad Day [EMAIL PROTECTED]
To: mike cullerton
On Wednesday, August 08, 2001 at 9:16 AM, Chad Day said:
I wish it did.
Still the same problem.
?php
session_start();
global $count;
session_register (count);
$count++;
?
Hello visitor, you have seen this page ?php echo
$HTTP_SESSION_VARS[count]; ? times.p
You're asking the
To: [EMAIL PROTECTED]
Cc: 'Chad Day'
Subject: RE: [PHP] Session problem
On Wednesday, August 08, 2001 at 9:16 AM, Chad Day said:
I wish it did.
Still the same problem.
?php
session_start();
global $count;
session_register (count);
$count++;
?
Hello visitor, you have seen this page ?php
, but I searched
php.net and found no mention
of anything ..
Chad
-Original Message-
From: Brian Dunworth
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 10:37 AM
To: [EMAIL PROTECTED]
Cc: 'Chad Day'
Subject: RE: [PHP] Session problem
On Wednesday, August 08
/realtors/count.php
Chad
-Original Message-
From: Bjorn Van Simaeys [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Session problem
Maybe you have your cookies turned off in your
browser? Something that is easily forgotten..
Greetz
?php
session_start();
global $count;
session_register (count);
$count++;
?
Hello visitor, you have seen this page ?php echo
$HTTP_SESSION_VARS[count]; ? times.p
There was a bug in PHP in versions prior to 4.0.6: $count and
$HTTP_SESSION_VARS[count] did not reference
Still not working. My script is -exactly- as you have it below, and I
believe I've tried that before.
(begins pulling out hair)
Chad
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 2:31 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP
Message-
From: Chad Day [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 2:36 PM
To: Johnson, Kirk; [EMAIL PROTECTED]
Subject: RE: [PHP] Session problem
Still not working. My script is -exactly- as you have it below, and I
believe I've tried that before.
(begins pulling out hair
What it looks like it is doing to me, if you hit the script
and reload it a
bunch, is it creates a session, sticks with it for a while,
then dumps it ..
it then creates another session, starts over at 1, and begins
counting up..
then sometimes it will see the old session, and go back to
What it looks like it is doing to me, if you hit the script
and reload it a
bunch, is it creates a session, sticks with it for a while,
then dumps it ..
it then creates another session, starts over at 1, and begins
counting up..
then sometimes it will see the old session, and go back to
Hassan El Forkani [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
indeed it's not working properly,
first of all please make sur the pages are not cashed send a header
(Cache-control: NO cache) i'm not sure about the syntax so check the
manual
then try to
I tried this, I still have the same problem. Is this a bug in the version
of PHP I am running?
Chad
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 4:58 PM
To: Chad Day; [EMAIL PROTECTED]
Subject: Re: [PHP] Session problem
i would try
forkani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 8:34 AM
To: Chad Day
Subject: RE: [PHP] Session problem
hello
At 15:16 07/08/01, you wrote:
My code:
auth.php:
session_start();
...
$res = mysql_query(SELECT NAME FROM dbhere where EMAIL = '$EMAIL
it about 10 times or so, watch what happens.
Chad
-Original Message-
From: hassan el forkani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 8:34 AM
To: Chad Day
Subject: RE: [PHP] Session problem
hello
At 15:16 07/08/01, you wrote:
My code:
auth.php:
session_start
forkani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 9:37 AM
To: Chad Day
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Session problem
oh i forgot!!!
you have to put this at the beginning of your page
?php
session_start();
?
indeed it's not working properly,
first of all please make sur
forkani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 9:37 AM
To: Chad Day
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Session problem
oh i forgot!!!
you have to put this at the beginning of your page
?php
session_start();
?
indeed it's not working properly,
first of all please make sur
i would try
session_start();
session_register(NAME);
$res = mysql_query(SELECT NAME FROM dbhere where EMAIL = '$EMAIL' AND
PASSWORD = '$PASSWORD');
if ($row = mysql_fetch_array($res)) {
$NAME = $row[NAME];
}
notice that $NAME is registered before being assigned to.
on 8/6/01 2:23 PM, Chad
Thanks for your email. I did the changes you suggested, and the page is now
going
to input.php?= ie no record of the SID.
I added the following lines to the code.
echo SID: $SID;
and
echo SID: $PHPSESSID;
and $SID was not displayed i.e just SID: was displayed. I guess this is the
problem.
For
Further to the last e-mail the plot thickens...
If cookies is turned on, the line
echo SID: $PHPSESSID;
displays the session id. I thought the whole idea of using $PHPSESSID was so that
sessions
would work with cookies turned off! Am I missing something here?
I disabled cookies via the
you're passing the PHPSESSID incorrectly, it seems
you must do something like this:
A HREF=nextpage.php??=SID?
or
header(Location: nextpage.php?$SID);
what you're doing now will go to page input.php?=SID
instead of input.php?938sa9fa98f7daf987a9s (or similar)
-Original Message-
Hi all,
just for the record.found the problem.the partition was
full*blush*:O\
-Robert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Hi Chris,
thanks for your fast reply. I tried your advice, checking if a variable
is already registered before registering it again, the problem remains.
The thing that bugs me is that I am getting no error message whatsoever,
session_register is returning true and there is nothing in the log
calling session_register() on a var that is allready registered is asking
for trouble. there seems to be some bug in php concerning this.
?php
session_start();
if (!isset($HTTP_SESSION_VARS['counter']))
{
$counter = 0;
session_register('counter');
}
$counter++;
echo
Counter:
I might be wrong, but AFAIK session is connected to the client and the window or
application exactly.
This means that if you close the browser and
- Original Message -
From: MySQL [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2001. május 5. 19:59
Subject: [PHP] Session problem
I
Try to empty the web cahce of your browser.
And one more thing, in PHP there is a default time limit while a session is not killed.
[from the manual]
session.gc_maxlifetime specifies the number of seconds after which data will be
seen as 'garbage' and cleaned up.
PHP sees your session a
That's because your "variable_order" is "EGPCS". (Default)
So your PHP is working fine.
--
Yasuo Ohgaki
""Jason Lam"" [EMAIL PROTECTED] wrote in message
99uf64$4i9$[EMAIL PROTECTED]">news:99uf64$4i9$[EMAIL PROTECTED]...
I got this strange problem, maybe a design flaw, please look at it and
FYI
Use $HTTP_*_VARS to avoid this kind of problems. Variable order may change
server to server, so you might not able to rely on it even if you know well
about it.
--
Yasuo Ohgaki
""Jason Lam"" [EMAIL PROTECTED] wrote in message
99uf64$4i9$[EMAIL PROTECTED]">news:99uf64$4i9$[EMAIL
On Sat, Mar 24, 2001 at 08:50:16AM +0100, Rol wrote:
I did notice that the session id is also written to the /tmp folder. Linux
mandrake.
If php doesn't set a cookie to save the session-registered variables it stores
them in the locatin set in the php.ini (which is by default /tmp)
Things
set the session.save_path to a directory that exists on your system (for
example: session.save_path = c:\temp)
Pavel
- Original Message -
From: "Brandon Orther" [EMAIL PROTECTED]
To: "PHP User Group" [EMAIL PROTECTED]
Sent: Tuesday, March 13, 2001 10:56 PM
Subject: [PHP]
you're using php for windows, right? well, you try to open /tmp which is
a *nix standard directory...i think you can fix that in your php.ini
jack
Brandon Orther wrote:
Hello,
Does anyone know how to fix this error?
Warning: open(/tmp\sess_4fb4c5778fe97ab351baca1d8db90abf, O_RDWR)
cookies disabled and using --trans-sid ? the only way PHPSESSID can be set
is if PHPSESSID is set in the url (get) or in a form (post) if neither is
set then your hooped. a new session will be created each time.
?php
session_start()
if (!isset($HTTP_SESSION_VARS['count']))
{
function add_toCart($id,$array) {
session_register("OBJECT");
$c = new Configurator;
$c-readConfig($id);
$OBJECT = serialize($c);
header("Location: Cart.php");
echo "Redirecting..."
}
Unfortunately, the session file (in /tmp) is always empty after this
function executes. I'm using PHP
The session file is not empty :) the OBJECT portion of the session file
is empty. i.e. cat'ing /tmp/sess_whatever yields:
!OBJECT|
-jm
-Original Message-
From: Javier Muniz [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:57 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Session
101 - 133 of 133 matches
Mail list logo