Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 2nd, 2007, 06:17 AM
Registered User
 
Join Date: Dec 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default IIS and session problem

Hello,
I am running PHP on IIS and for the life of me, I can't get the sessions to work. I have set the session.save_path, which does initialise a session, but the session is not being saved if I move from page to page, any advice please?

chris
 
Old March 5th, 2007, 07:50 AM
Registered User
 
Join Date: Dec 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

On further investigation, I have ascertained that the session is being written, I have visibly observed this. I have enabled sharing for my sessions folder which is set in my php.ini as:
session.save_path= c:\sessions

Is there any particular reason why the session is not recognised? When I move to a new page, which is in the same directory, session_start() creates a new session instead of recognising that there is already one started.

chris
 
Old March 15th, 2007, 11:23 AM
Registered User
 
Join Date: Dec 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

found my own solution, hardly worth posting here, no one seems to want to help. If anyone else has had the same problem, I solved it by adding a 0; to the beginning of the session.save_path declaration in the php.ihi. to make this clearer that's a zero and semi colon

chris





Similar Threads
Thread Thread Starter Forum Replies Last Post
IIS 5.0 problem darkestangel1980 Dreamweaver (all versions) 3 April 18th, 2007 09:05 AM
Passing session variables from IIs to Tomcat aman thaper Internet Information Services 0 November 14th, 2006 09:34 AM
session and cookie problem (empty session file) msincan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 27th, 2005 05:31 PM
Expired CR9 session kills IIS darkov Crystal Reports 0 March 15th, 2004 05:28 AM
IIS problem Violaplayer Classic ASP Basics 0 December 24th, 2003 03:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.