The only other way I can think of doing this without sessions is to use $_SERVER['HTTP_REFERER'] to check if page request is coming from an existing page within your site or not. But I don't think this method will work 100% of times.
Another approach would probably be to use single entry point controller model meaning, all pages are served by index.php. Still not sure as to how you can do this without sessions but you might want to look at frameworks like php.MVC or Fusebox that use the controller model http://www.phpmvc.net/ http://php-fusebox.sourceforge.net/ Hope this helps. -----Original Message----- From: Fernando M. Maresca [mailto:[EMAIL PROTECTED] Sent: Sunday, December 21, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] [posibleOT] Forcing entering te site thru index.php Hello everybody. Well, i'm trying to avoid access to the site for the middle. Say there is a initial page with a form and other pages that depends on this. Is there a way to force users access the site thru the initial form page, regardless of the url? Something like this: lynx http://mysite/forma2.php/ produce the browser to redirect to http://mysite/index.php/ Of course, the forma2.php must be served if its accesed after index.php. Thanks -- Fernando M. Maresca Cel: (54) 221 15 502 3938 Cel: 0221-15-502-3938 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php