Connecting Tech Pros Worldwide Help | Site Map

SESSION is not working in IIS

Familiar Sight
 
Join Date: Sep 2007
Posts: 210
#1: Sep 22 '07
I'm using IIS on windows XP professional SP2 and programming with PHP..
The problem is that when I use SESSION in my programs it doesn't work in IIS and the same program works when i upload it into my website..

Actualy my website server is LINUX.. Is it because of difference beetwen these two? LINUX and WINDOWS
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Sep 23 '07

re: SESSION is not working in IIS


Although I dont know much about Linux I know that it is run with Apache. The more important issue is that it is really important to have your development and production platforms the same. Hey you might even want to think about a test environment. Having said all this there are probably ways to get it all working on xp, it just wont be native. Try search the site.
Familiar Sight
 
Join Date: Sep 2007
Posts: 210
#3: Sep 23 '07

re: SESSION is not working in IIS


Thanks for your reply
I solved the problem by searching in google.. So I write it here for those people who has the same problem...
When you install php the configuration file ( php.ini ) must be copied in the WINDOWS directory...
Open that file and search for : session.save_path =
Then change the path to a directory which exists...
This problem mostly occures when php is installed in a directory other than c:\php


Enjoy
Newbie
 
Join Date: Sep 2007
Location: indonesia
Posts: 25
#4: Sep 26 '07

re: SESSION is not working in IIS


Quote:

Originally Posted by bnashenas1984

Thanks for your reply
I solved the problem by searching in google.. So I write it here for those people who has the same problem...

Thank you!!

Quote:
When you install php the configuration file ( php.ini ) must be copied in the WINDOWS directory...
Open that file and search for : session.save_path =
Then change the path to a directory which exists...
This problem mostly occures when php is installed in a directory other than c:\php

Enjoy
hi..bnashenas!

I wanna ask you a simple question. Where do you put your session.save_path's directory??

My PHP is installed in C:\webserver\php and my session doesn't work...

Pls help me and Thank you... :)
Familiar Sight
 
Join Date: Sep 2007
Posts: 210
#5: Sep 4 '08

re: SESSION is not working in IIS


Hi there
I know that was a long time ago you asked this question but I thought maybe this answer help someone.
I recently had a problem with session after installing windows but I solved it with permiting guest user on the folder PHP stores the session
Here is what you should do:

Open (my computer) and go to (Tools --> Folder options --> view) and scroll down the page. you will see an option named (Use simple file sharing recomended)
UNCHECK the box and click on OK

Then go to the folder that PHP saves the sessions on. Right click on the folder and click on properties. Go to security part and choose the (user name) you log in to your windows with . It usualy is (Guest Account).

Once you click on the username you can see the permitions on the list bellow. Let the user have access to that folder by checking boxes.

I hope this helps

Good luck
Reply