Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

session_start() not working over SSL

Posted on 2011-09-19
3
331 Views
Last Modified: 2013-11-18
I get the following error in my php_errors.log file when accessing a file that uses session_start() over ssl:

[19-Sep-2011 21:52:58] PHP Warning:  session_start(): open(C:\Windows\TEMP\\sess_ihq9ssb4n051vv5cg5rcbt39f3, O_RDWR) failed: Permission denied (13) in \\the\path\to\the\file\public_html\index.php on line 2

(obviously it has the actual path though)

It works fine over regular http, just not https. Files that don't start a session pull up fine over ssl. This is on IIS7 on Windows Server 2008.
0
Comment
Question by:aiscom
  • 2
3 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36563893
You need read/write permission on the 'session_save' directory.  Look in 'php.ini' and see if "C:\Windows\TEMP\" is the correct directory.  Don't know why SSL would change that though.
0
 

Accepted Solution

by:
aiscom earned 0 total points
ID: 36589309
I had tried giving everyone full access to C:\Windows\TEMP but that didn't work either.

When I looked at the problem the next day it was fixed, so I'm not sure what solved the problem.
0
 

Author Closing Comment

by:aiscom
ID: 36715402
Solution given didn't work, but the problem resolved itself
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question