PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Mod Requests (http://www.phpdig.net/forum/forumdisplay.php?f=23)
-   -   Cookie management (http://www.phpdig.net/forum/showthread.php?t=643)

jbc 03-11-2004 02:56 AM

Cookie management
 
Hi all,

I am using phpdig on a web site divided in different parts : public, private, admin, ...

The authentication macanism is based on a cookie named SID (php session id).

My project is to index automatically the whole site using the following process :

- a batch create a session on the portail

- the same batch sends the SID value to the spide.php script

- the spider.php uses the ?SID=<value_sent_by_script> of Header:Cookie SID=<value_sent_by_script > for every requests sent to the site.

Any idea how to implement it in the code ?

Thanx
jb

Charter 03-11-2004 02:23 PM

Hi jbc, and welcome to PhpDig.net!

Perhaps this thread might help, or are you looking to have PhpDig actually do the authentication?

jbc 03-12-2004 11:35 AM

Thanks for helping ;-)

What I whant to do is to add an extra option to the spider.php crawler : this option will contain a string like "SID=202ab26bc69" and will be sent as a cookie by phpdig while it is browsing a site.

for instance :

spider.php http://www.mysite.com "SID=jqgjgqsg"
will send the header
Cookie: SID=jqgjgqsg
for every sent to www.mysite.com

Any idea or patch to use ?


All times are GMT -8. The time now is 05:01 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.