I am having a great deal of trouble with maintaining a session across several pages...(win2k / iis / php)
I have the following code:
session_start();
if (!$PHPSESSID){
session_register('ip');
$ip=$REMOTE_ADDR;
}else if (!$ip){
session_register('ip');
}
in every page that needs to reference the session, currently 3 but gonna need 4or 5 pages total. The code goes like this, I start a session, the data get passed to the next page and inserted into the DB. When I go back to the original products page, a new session is started and a new session_id is created...
any ideas why i can't get the session to remain?
TIA
bastien