Try registering the variables in the checkuser.php script also.
Regards
""Roman Lichszteld"" <[EMAIL PROTECTED]> wrote in message
9c8hd2$nfn$[EMAIL PROTECTED]">news:9c8hd2$nfn$[EMAIL PROTECTED]...
> > I haven't worked with trans_sid much, so I'm not very familiar with the
> > specifics.
> >
> > The problem is that the get variable PHPSESSID or whatever is passed as
a
> > get while the action of a form is POST.
> >
> > One workaround is to create a hidden input named PHPSESSID or SID and
set
> > it's value to <? echo $SID ?>.
> >
> > Good luck, and let me know how you fixed it!!! ;-)
> > -Joe
>
> > I haven't worked with trans_sid much, so I'm not very familiar with the
> > specifics.
> >
> > The problem is that the get variable PHPSESSID or whatever is passed as
a
> > get while the action of a form is POST.
> >
> > One workaround is to create a hidden input named PHPSESSID or SID and
set
> > it's value to <? echo $SID ?>.
> >
> > Good luck, and let me know how you fixed it!!! ;-)
> > -Joe
>
> Upps, I only got message: "Warning: Undefined variable: SID". I really
don't
> know why!
>
> But now I changed some things - now I'm not using any frames and startup
> page "teststart.php" looks like this:
>
> <?
> $LoggedUserID="UserID";
> $LoggedUserName="Session tester";
> $LoggedUserPass="somepassword";
>
> session_start();
> session_register("LoggedUserID");
> session_register("LoggedUserPass");
> session_register("LoggedUserName");
>
> print("<CENTER>\n");
> print("<A HREF=\"test1.php\">Click here to continue...</A>\n");
> print("</CENTER>\n");
> ?>
>
> Script "checkuser.php" (included at the top of 'test1.php') :
>
> <?
> session_start();
>
> if( empty($LoggedUserID) || empty($LoggedUserPass) ||
> empty($LoggedUserName) )
> {
> print("<FORM name=\"URLForm\" method=\"post\" target=\"_top\"
> action=\"../start.php\">\n");
> print("<INPUT type=\"hidden\" name=\"StartPage\"
> value=\"Login\">\n\n");
> print("</FORM>\n");
>
> print("<SCRIPT language=\"JavaScript\">\n");
> print("<!--\n");
> print("document.URLForm.submit()\n");
> print("//-->\n");
> print("</SCRIPT>\n");
> }
> ?>
>
> And... I never achieve 'test1.php', I'm ALWAYS redirected to 'start.php'!
> In folder where session id's re stored on the server appear new session
> files...
>
> Regards
>
> Roman Lichszteld
> [EMAIL PROTECTED]
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]