Stuck in a Loop



I'm trying to implement cookie login but new to php and I'm getting
stuck in a loop. I check to see if the session[userid] is set on each
page if not then I display the login box. I'm doing this in the
connection file. When a page is run with the code it just loops but if
I go straight to the _LoginCookie.php page it works fine but when I
include the _logincookie file in my logincode it loops for some reason.
If I take it out regular login works fine. Here is the code for all
pages. Any suggestion to as why this is happening or a better way to
do this?

http://www.fusionxstudio.com/Test/Code.php

PS: is there a way to do a step thru debug with php to see what is
happening real-time, Iike I've done in VB? Thanks

.



Relevant Pages

  • ~~~~~~~~~~~~~~ LOGIN PHP ~~~~~~~~~~~~~~
    ... adding login php script on website ... complete login password system php mysql ... flash php login script ...
    (rec.audio.tech)
  • Re: PHP - D3 subroutine calls?
    ... MVWWW does the login once and then makes the connection available for ... don't think any of the MV vendors have adequately minimized the pain ... your PHP call. ...
    (comp.databases.pick)
  • Re: PHP running exec() Windows program very slow in comparison to UNIX equivalent program
    ... So, by converting a VB6 DLL into a COM and calling the COM from PHP I am able to work around the speed limitations of swetest.exe, PHP, and Windows. ... I wrote a little program in VB5 that essentially does what this other compiled C Windows program does in just one of the loops that gets executed about 140 times. ... the other thing is how long it takes to to execute the program with those statements from a command prompt. ...
    (alt.php)
  • Re: To allow access only from the designated site.
    ... I want to allow access to it only from site "B" login user. ... what capabilities do both servers have, do they have php, does only ... one, which one, does one/both have a database, session support? ... and to a script on siteB, and uses RSA for the form, with B's public ...
    (comp.lang.php)
  • RE: [PHP] why?
    ... It doesn't work together with Windows ... PHP) you mean? ... access to the initial login values ... What we shoot for is Single Source Authentication. ...
    (php.general)