View Single Post
Old 11-17-2008, 02:36 AM   #2 (permalink)
Killswitch
The Contributor
 
Join Date: Feb 2007
Posts: 64
Thanks: 9
Killswitch is on a distinguished road
Default

Little update. I've gotten it working with some changes. I put session_start() at the top of the index. I also added the login and loadUser code directly in the index ( I can probably change back now ).

Seems the problem was in either ...
Code:
session_name( sha1( $_SERVER['HTTP_USER_AGENT'] . $_SERVER['REMOTE_ADDR'] ) );
session_id( sha1( uniqid( microtime() . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT'] ) ) );
Maybe this could be due to me being on localhost? If I'm wrong about that, does anyone have a recommendation as to what I can set these to?

This is all just a basic setup. I want to eventually work with adding the info to database, as well as with cookies ( just found WildHoney's tutorial about sessions on Pixel2Life, great read ).
Killswitch is offline  
Reply With Quote