I'm using the line "ini_set('session.save_handler', 'files');" before session_start(); in my files, and understand I should have a directory called "tmp" (world writeable?) somewhere in my filesystem.
Sessions are created and used both by files within public_html and by files within the admin subdirectory. Sessions are not considered to persist between the two directories - if you're logged in as an admin, you're not logged in as a public user, and vice versa.
This is on a shared host, by the way.
The account's directory structure looks like this:
username
public_html
index.php
(other php files, image folders, etc)
admin
index.php
(other php files, etc. related to admin)
My question is, where should I locate the tmp directory?
- inside "username" (i.e. outside the public_html directory)?
- inside "public_html"?
- a separate, additional tmp directory inside "admin" for admin logins?
Thanks!