Solved

session_start() not working over SSL

Posted on 2011-09-19
3
335 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Contact Forms for Website 6 85
Getting attribute Values using xslt 4 60
How to get statistic's from a competitors website?! 1 126
removing a class in javascript 4 71
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

749 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