View Single Post
Old 03-14-2005, 06:05 PM   #2
joannelee
Green Mole
 
Join Date: Mar 2005
Posts: 2
** URGENT **
Dear Charter and all experts,

Why no one response my questions at all? More description of my problems as follows:

1. Most of my web pages are password protected using session. For example:
//index.php
$sess = new Session();
$user = $sess->getSession($GLOBALS["sessionUser"]);
if(!empty($user)) { print $html_content; }
else { header("Location: index.php?error=timeout");}

I have already logged in to index.php, and then go to phpdig admin page to dig index.php. But only index.php?error=timeout can be digged even the session is valid. How can I dig the real content ($html_content above) when the session is valid?

I cannot remove the session validation during indexing due to security reason and cannot access the root of the hosting machine.

---------------------------------------
2. In searching, how can the result set just return the web pages which they can see and NOT return the protected pages if the current user is not logged in? The login logic is same as above.

Please give me a hand! Thank you very much!
joannelee is offline   Reply With Quote