?
Solved

session_start() not working over SSL

Posted on 2011-09-19
3
Medium Priority
?
349 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 84

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

864 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