Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 December 7th, 2004, 05:27 PM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Two Webspaces; One "session-less"

I have two sites sitting on a server at work. Both operate using php and mysql. Both have access control. Although; on Friday suddenly the 2nd site no longer wanted to store my session. No can no longer log on and stay logged on as you go from page to page. Very strange since I didn't change anything. I then wrote a simple two file test. The one saving a session variable, the other displaying it. It didn't work when the files where in the directory of the one site, but did work in the other directory of the other.

I did remember all the normal stuff (session_start() and such) but i was wondering if it was a setting in php.ini or something like that. The fact that it does work in one site and not the other aludes to that the php is fine, but not even the session test application works in that directory. The server at work uses IIS (5, i think)

Any suggestions would be welcome.

Thanks
Sameer Parker
 
Old December 8th, 2004, 05:06 AM
Authorized User
 
Join Date: Oct 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to SiliconFuRy
Default

Check permissions for tmp directory (defined in php.ini) where the session files are stored. Make sure the user under which the IIS service runs has write access here.

That might not explain why one site works and the other doesn't, but its a start I guess...

Many shoes,

Jamez/SiliconFuRy





Similar Threads
Thread Thread Starter Forum Replies Last Post
session komalpriya .NET Framework 2.0 4 October 30th, 2007 09:16 AM
session lakshmi devi Classic ASP Basics 4 July 20th, 2006 04:33 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
About Session mani_he Beginning PHP 7 September 18th, 2004 03:47 PM
Session quinn Classic ASP Basics 12 November 19th, 2003 10:42 AM





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