Break down
Ive got four scripts. The scripts are session based on php 4.3
- login form - Which is a include file
- Authentication script - a script that is used by the login for to authenticate a user
- Login check - checks to see in the user is logged in. (include file as well)
- a search script - to search the db
The Search script has two includes the login form and the login check.
The user needs to be logged in in order to search the database.
When he logs in in everything goes well, and he is autheniticated
by the Authentication script [point 2 above]. He then procceeds to the search engine [page 4 above] where the login check checks to see if the user has been logged in....which works fine.
The Problem
When a user tries to search, the search script tries to re-authenticate via the include file -> loginform.php
Ive never come across this problem before...any ideas