note 113372 added to function.session-save-path
| From: | mdibbets at outlook dot nospam | Date: | Thu, 03 Oct 2013 07:45:30 +0000 |
| Subject: | note 113372 added to function.session-save-path | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196452@lists.php.net to get a copy of this message | ||
I made a folder next to the public html folder and placed these lines at the very first point in
index.php
Location of session folder:
/domains/account/session
location of index.php
/domains/account/public_html/index.php
What I placed in index.php at line 0:
<?php
ini_set('session.save_path',realpath(dirname($_SERVER['DOCUMENT_ROOT']) .
'/../session'));
session_start();
This is the only solution that worked for me. Hope this helps someone.
----
Server IP: 69.147.83.199
Probable Submitter: 77.168.133.239
----
Manual Page -- http://php.net/manual/en/function.session-save-path.php
Edit -- https://master.php.net/note/edit/113372
Del: integrated -- https://master.php.net/note/delete/113372/integrated
Del: useless -- https://master.php.net/note/delete/113372/useless
Del: bad code -- https://master.php.net/note/delete/113372/bad+code
Del: spam -- https://master.php.net/note/delete/113372/spam
Del: non-english -- https://master.php.net/note/delete/113372/non-english
Del: in docs -- https://master.php.net/note/delete/113372/in+docs
Del: other reasons-- https://master.php.net/note/delete/113372
Reject -- https://master.php.net/note/reject/113372
Search -- https://master.php.net/manage/user-notes.php