Hi everyone, Just in case you or anybody in the future (maybe reading the archive) come accross the same problem here is how i have solved it and made all my scripts run perfectly again as they were before.
I just created a .htaccess file and added these 2 lines since i dont have direct access to the php.ini file: php_value session.use_cookies 1 php_value session.use_trans_sid 0 (Based on John Holmes reply) This will only affect the directory which you put this in of course. I found that even though session.use_cookies was on the session.use_trans_sid was overriding it, I added the "php_value session.use_cookies 1" just to make sure. I dont know if the overriding is normal for everyone so check it out for youself if you have problems. Below is my first message for this thread in case you are intrested. Thank you everyone who replied. Cheers, -Ryan > Hi, > Ok, have half solved why my scripts all of a sudden stopped working. > > This is how my scripts are setup: > There is a form(login.php) where the user puts in his user/pass, then this > is authenticated(auth.php) by the database and a few other sessions are > created (email,cust_number) and also username,password sessions are created. > Then i am using a header("Location....") to send it to details.php, > details.php will check and make sure that the following sessions have been > created username,password,email,cust_number, if any are not valid it will > kick ther person back to login.php...this was working before but not now. > > I went to my forms source and checked where it was sending my submitted form > and found a hidden text box there with this data: > <input type="hidden" name="PHPSESSID" > value="46081aa70da693f5edeecc069ed8a627" /> > > so i took that "PHPSESSID" and its value and added it to my > header("Location....") like so: > header("Location:details.php?PHPSESSID=46081aa70da693f5edeecc069ed8a627") > > and every damn thing is working again... > > can ANYBODY please tell me what the @#%# is that PHPSESSID, how it got into > my login page and how do i work with it? > because now I have manually put it in my file, do i need to always put it? > how do i get it as a variable and finally how can i take it out of my > computer and jump on it for causing me 5 hours of pain and suffering.any > ways of killing it slowly too is appreciated. > > Even if you cant answer the first questions the last two will do, the > [EMAIL PROTECTED]@#%@ [EMAIL PROTECTED]@# PHPSESSID.... > > Thanks in advance, > -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php