Solved

session_start() not working over SSL

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now