php-windows Digest 6 Sep 2006 13:39:28 -0000 Issue 3031
Topics (messages 27124 through 27127):
Issue saving session on windows xp
27124 by: Kathy Lessa
27125 by: Alex Turner
27127 by: Kathy Lessa
Re: Which Web Server Do You Use
27126 by: Alex Turner
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 ---
I am running PHP v5.1.6 on Windows XP Pro. I have been unable to save
session variables, and I've tried everything I can think of with no
luck so far.
I have confirmed that I have writable access to my session save path,
but session variables are still not saved. Does anyone have
suggestions for configuration changes, etc.?
Reproduce code:
---------------
ini_set("session.save_path","C:\\WINDOWS\\temp");
session_start();
echo (($sp=ini_get('session.save_path'))?$sp:'Not set<br>');
echo is_writable($sp) ? ' writable<br>':' not writable<br>';
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
}
echo $_SESSION['count'];
?>
Expected result:
----------------
c:\windows\temp writable
0, 1, 2, 3 , 4...
Actual result:
--------------
c:\windows\temp writable
0, 0, 0, 0, 0...
--- End Message ---
--- Begin Message ---
Kathy Lessa wrote:
I am running PHP v5.1.6 on Windows XP Pro. I have been unable to save
session variables, and I've tried everything I can think of with no
luck so far.
I have confirmed that I have writable access to my session save path,
but session variables are still not saved. Does anyone have
suggestions for configuration changes, etc.?
Reproduce code:
---------------
ini_set("session.save_path","C:\\WINDOWS\\temp");
session_start();
echo (($sp=ini_get('session.save_path'))?$sp:'Not set<br>');
echo is_writable($sp) ? ' writable<br>':' not writable<br>';
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
}
echo $_SESSION['count'];
?>
Expected result:
----------------
c:\windows\temp writable
0, 1, 2, 3 , 4...
Actual result:
--------------
c:\windows\temp writable
0, 0, 0, 0, 0...
Have you tried setting up the session from php.ini? I have never tried
doing it from ini_set like this.
Can you send us your php.ini? Or part of it.
Thanks
AJ
--
www.deployview.com
www.nerds-central.com
www.project-network.com
--- End Message ---
--- Begin Message ---
Thanks for the response. I tried modifying my php.ini to specify the
session.save_path there and removed the ini_set call from my page, and
it had no impact.
My php.ini is attached. Thanks for any help, I've tried all sorts of
setting changes and nothing seems to fix this.
On 9/6/06, Alex Turner <[EMAIL PROTECTED]> wrote:
Kathy Lessa wrote:
> I am running PHP v5.1.6 on Windows XP Pro. I have been unable to save
> session variables, and I've tried everything I can think of with no
> luck so far.
>
> I have confirmed that I have writable access to my session save path,
> but session variables are still not saved. Does anyone have
> suggestions for configuration changes, etc.?
>
> Reproduce code:
> ---------------
> ini_set("session.save_path","C:\\WINDOWS\\temp");
>
> session_start();
>
> echo (($sp=ini_get('session.save_path'))?$sp:'Not set<br>');
> echo is_writable($sp) ? ' writable<br>':' not writable<br>';
>
> if (!isset($_SESSION['count'])) {
> $_SESSION['count'] = 0;
> }
> else {
> $_SESSION['count']++;
> }
>
> echo $_SESSION['count'];
> ?>
>
> Expected result:
> ----------------
> c:\windows\temp writable
> 0, 1, 2, 3 , 4...
>
> Actual result:
> --------------
> c:\windows\temp writable
> 0, 0, 0, 0, 0...
Have you tried setting up the session from php.ini? I have never tried
doing it from ini_set like this.
Can you send us your php.ini? Or part of it.
Thanks
AJ
--
www.deployview.com
www.nerds-central.com
www.project-network.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Leo G. Divinagracia III wrote:
have you seen a web server built on php??????
http://nanoweb.si.kz/
Yes - nice but I stayed away from it for serious work on Windows. I
would think about it for small stuff on xnix. Just a personal thing, I
got burned once thinking that PERL stuff like this, which worked
beautifully on xnix, would be OK on Windows.
Has anyone else tried it seriously on Windows.
Thanks
AJ
--
www.deployview.com
www.nerds-central.com
www.project-network.com
--- End Message ---