I simply have session_start (); at the top of my page and with each refresh, a new session is created. I have turned off my firewall, cookie blockers and the same problem occurs.
You help would be much appreciated
check and make sure php is actually sending a cookie. ex: view the http headers being sent.
if so, make sure your browser is in fact accepting it. ex: look in your cookies on your comp.
if that doesnt solve it for you, post some code.
Yep they are sent. Firefox shows they are sent and in my session folder i can see the session exisits. I can't figure it out, it keeps resending the sessions on refreshing a page. My code is simply:
session_start ();
It is such an odd problem though!
put this in a seperate php file, all by itself and tell me what happens after you refresh it.
<?php session_start(); print_r($_COOKIE); ?>
I just get:
Array ( )
Thanks for your help but my old server configuration never did this. Could the problem be in the php.ini file?