php-windows Digest 20 May 2002 15:54:25 -0000 Issue 1153
Topics (messages 13866 through 13869):
PHP Sessions
13866 by: Ben
13867 by: Matt Parlane
13868 by: Aziz Durmaz
Re: Need help with frames
13869 by: Benjamin Walling
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hey,
I am trying to work out PHP sessions, but are having some trouble at the
first step.
This code, which should be simplistic:
<?php
session_start();
print "your session id is: ".session_id();
?>
Results in this output:
Warning: open(/tmp\sess_52be4d339fbffacf1efc495cf16ed383, O_RDWR) failed: m
(2) in c:/documents/web/page1.php on line 2
your session id is: 52be4d339fbffacf1efc495cf16ed383
I am running windows. Is there some kind of configuration change I have to
make to enable sessions or something?
Thanks.
--- End Message ---
--- Begin Message ---
Hi Ben...
Do you have a tmp directory in your root directory?
if not, PHP won't be able to write the session files there. You need to
either change the session.save_path directive in php.ini, or create the /tmp
directory, or I think you can store session info in memory - not sure how
tho.
Matt
"Ben" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey,
>
> I am trying to work out PHP sessions, but are having some trouble at the
> first step.
>
> This code, which should be simplistic:
> <?php
> session_start();
> print "your session id is: ".session_id();
> ?>
>
> Results in this output:
> Warning: open(/tmp\sess_52be4d339fbffacf1efc495cf16ed383, O_RDWR) failed:
m
> (2) in c:/documents/web/page1.php on line 2
> your session id is: 52be4d339fbffacf1efc495cf16ed383
>
> I am running windows. Is there some kind of configuration change I have to
> make to enable sessions or something?
>
> Thanks.
>
>
--- End Message ---
--- Begin Message ---
Find your php.ini file and change this line
session.save_path = c:\winnt\temp or
session.save_path = c:\windows\temp
if you use W2k give all permission the temp dir for everyone...
-----Original Message-----
From: Ben [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 6:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP Sessions
Hey,
I am trying to work out PHP sessions, but are having some trouble at the
first step.
This code, which should be simplistic:
<?php
session_start();
print "your session id is: ".session_id();
?>
Results in this output:
Warning: open(/tmp\sess_52be4d339fbffacf1efc495cf16ed383, O_RDWR) failed: m
(2) in c:/documents/web/page1.php on line 2
your session id is: 52be4d339fbffacf1efc495cf16ed383
I am running windows. Is there some kind of configuration change I have to
make to enable sessions or something?
Thanks.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Maybe I read it wrong, but you named your frame 'middlepanel', not 'middle'.
You need to set that as your target. Are the users changing this stuff from
a form? If so, it's your form tag that needs the target="middelpanel".
"Bob Sears" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> // $text .= " <frame
src=\"anewgen.php?category=$category&supplier=$supplier";
> // $text .= "&trackingnumber=$trackingnumber\" noresize scrolling=auto
> name=\"middlepanel\">";
> to contain the new product display. The module doing the MySQL product
> access has a "target = middle" in the <head> section.
--- End Message ---