SunQuest
           IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 2nd, 2004, 06:53 AM
cold1too cold1too is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 9 cold1too User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cannot set php session vars w/ Win2000pro/IIS 5

I'm running Windows 2000 pro SP4, IIS and PHP 4.3.4 . I cannot set php session variables with my current config, even though the same scripts work fine with Linux/Unix and Apache. This has been a known bug for a while with IIS and PHP, but has anyone discovered a solution?

I've tried $_SESSION['test'] = 'foobar'

and

global $test
$test = 'foobar';
session_register("test");

Nothing works! The variables do not have global scope. I can see the session files being written to the seesion data dir, but the vars don't get set. I've toggled register globals in php.ini, experimented with different session settings, double-checked permissions on the sessiondata directory, changed the session directory, tried using ISAPI, etc..

Reply With Quote
  #2  
Old March 2nd, 2004, 11:35 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,712 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 23 h 31 m 33 sec
Reputation Power: 688
I don't use PHP with IIS and can't help you out, sorry.
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old June 30th, 2004, 05:33 AM
ec0gf ec0gf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 ec0gf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Having trouble with sessions and cookies in iis 5, got the latest version of php. seems to write 2 session files, and uses the inactive one, works fine on apache. Any ideas anyone?

Reply With Quote
  #4  
Old September 24th, 2004, 02:17 AM
stroggoff stroggoff is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 stroggoff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by ec0gf
Having trouble with sessions and cookies in iis 5, got the latest version of php. seems to write 2 session files, and uses the inactive one, works fine on apache. Any ideas anyone?


When that happened to me, the problem was the client browser (Internet Explorer) and its stupid security settings.
It seems that IE (since some security fix) does NOT allow cookies from websites which names are NOT alphanumeric but contain other characters too. My site's server name had and '_' in it. When I changed that the problem was gone!

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Cannot set php session vars w/ Win2000pro/IIS 5


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway