Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sessions/ Login script problems.....??

Status
Not open for further replies.

metamorphy

Programmer
Dec 16, 2001
34
US
Hello,



I have a few sites on the same server which uses $_SESSION to handle logins and track users .
They are all subdirectories on the same virtual domain like this:

etc...


Everything is working fine on the sites but recently, ONE OF THE SITES stopped passing the $_SESSION vars. After someone logs in, when they go to another page they get logged out. This was not happening before and I HAVE MADE NO CODE changes to the webpages. I noticed that I can fix this error by lowering the privacy settings on IE, but I really want to fix this. I do not need to lower the setting on the other pages to get them to work, and they are also subdirectories of the same virtual domain. This is very weird. The only thing I have done recently was add a .httpd file to one of the other
directories so that I can run php scripts in .html files.

I know this is not very clear...Can someone please respond and I will try to give you the relevant info and code samples you need to help me... THanks in advance!!!

-CH
 
...add a .httpd file to one of the other
directories...
You mean an .htaccess file or am I confused?
What is the content of that .htaccess file?
 
Yes, sorry!! .htaccess

anyway I put a .htaccess file in one of the other directories with the following:

AddType application/x-httpd-php .html


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top