I'm having trouble carrying my session from page to page for some reason. I DO have the session_start() at the top of every page, and when I am on the pages that are behind the SSL and STAY behind it, everything works just fine. But when I'm not behind the SSL, it is creating a new session every time it loads a page instead of carrying the same one across. So, it's losing the username that I've stored in the session.
Isn't there something I can change in php.ini file to fix that? Or actually, another value that I can add to my .htaccess file to override whatever that value is and fix this problem? Here's the current settings that I have under the session heading on my php.ini file:
session
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On