473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

SESSION is not working in IIS

258 100+
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
Sep 22 '07 #1
4 8017
kenobewan
4,871 Expert 4TB
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.
Sep 23 '07 #2
bnashenas1984
258 100+
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
Sep 23 '07 #3
momogi
28
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!!

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... :)
Sep 26 '07 #4
bnashenas1984
258 100+
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
Sep 4 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Larry Woods | last post by:
I have a site that works fine for days, then suddenly, I start getting ASP 0115 errors with an indication that session variables IN SEPARATE SESSIONS have disappeared! First, for background...
1
by: Ann Leland | last post by:
I have been using session variables to pass a user name from one ASP page to another inside framesets for 9 months and it stopped working this week. I have made no code changes but there was a...
1
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can...
3
by: Raghu Raman | last post by:
Hi, am in c#.net project. am using the session object for some logic. e-g:session="Add"; i can refer this by using if(Session=="Add") { logic
2
by: Aryan | last post by:
Hi, I have put my session related parameter in web.config under system.web, given below is the code for same. <system.web> <sessionState timeout ="1440" mode ="InProc" /> </system.web> this...
4
by: Parrot | last post by:
For some reason my Session state stopped working in my webpages. I cannot pass a variable from one webpage to another using the Session. For example: Web page 1: Session = dbname;...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
5
by: Twayne | last post by:
Hi, If ever a newbie wants to know how much he has to learn yet, he only has to look here<g>!! ANYway: PHP 5.2.5; XP Pro SP2+, local Apache Server My actual question is: How do I get a...
6
by: ChrisAtWokingham | last post by:
I have been struggling with unexpected error messages on an ASP.NET system, using SQL and C#. The application draws organisation charts, based on data stored in the SQL database. Some of the chart...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.