473,854 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SESSION is not working in IIS

258 Contributor
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 8113
4,871 Recognized Expert Specialist
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
258 Contributor
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_pa th =
Then change the path to a directory which exists...
This problem mostly occures when php is installed in a directory other than c:\php

Sep 23 '07 #3
28 New Member
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_pa th =
Then change the path to a directory which exists...
This problem mostly occures when php is installed in a directory other than c:\php


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

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

Pls help me and Thank you... :)
Sep 26 '07 #4
258 Contributor
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

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 information, I have a customized 500-100 page that sends the value of various session variables via email to my support site. The situation: On the home page of the site, the FIRST THING that is done is a Session
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 "security update" installed on the server a few days ago but I can't find out exactly what it was. In the research I have done I found many articles on the subject of session variables in ASP pages inside framesets. From what I read a new...
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 find one? Thanks Werner P.S. Somehow I did not manage to do a followup in Googles newsgroups.
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
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 session timeout is not working out, as this shows me login page again if i dont do something for more then 20 minutes.
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; Response.Redirect("Webpage2"); Webpage 2:
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
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.
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 POST variable into a session variable so I can use it in any other page I want to use it in? Apparently posted variables are only available in the Form page in
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 editing processes place a very heavy load on the server as the effects of the edit ripple through the organisation structure, requiring potentially large numbers of rows in one of the tables to be updated. (I have done it this way to make the more...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.