RE: [PHP] session

From: Date: Wed, 26 Apr 2006 14:17:19 +0000
Subject: RE: [PHP] session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234815@lists.php.net to get a copy of this message
Login.php <? // starting session here require_once("include/init.inc"); ?> <table height="100%" width="100%" align="center" cellpadding="2" cellspacing="0"> <tr> <td align="right">User</td> <td><input type="text" name="loginUser"></td> </tr> <tr> <td align="right">Passwrod</td> <td><input type="password" name="loginPassword"></td> </tr> <tr> <td></td> <td><input type="submit" name="submit" value="<?=$login["login_submit"];?>"></td> </tr> </table> Login.php <? // starting session here require_once("include/init.inc"); Here is code for checking user and password And if is ok do this ?> <script type="text/javascript" language="javascript"> window.location.href = "admin.php"; </script> <? } Admin.php <? require_once("include/init.inc"); require_once("include/check.inc"); ?> <html> <frameset framespacing="0" border="false" frameborder="0" cols="180,*"> <frame name="tree" src="menu.php" frameborder="0" marginwidth="0" marginheight="0" framespacing="0" scrolling="no" noresize> <frame name="master" src="blank.html" frameborder="0" marginwidth="0" marginheight="0" framespacing="0" scrolling="auto" noresize> </frameset> <noframes> <body bgcolor="#FFFFFF"> <br><br><center> <h1>No Frames!</h1> <h4>No frames in your browser!</h4> </center></body> </noframes> </html> And for example in menu.php I'm using require_once("include/init.inc"); DS -----Original Message----- From: chris smith [mailto:dmagick@gmail.com] Sent: Wednesday, April 26, 2006 4:10 PM To: Sichta, Daniel Cc: php-general@lists.php.net Subject: Re: [PHP] session On 4/27/06, Sichta, Daniel <Daniel.Sichta@siemens.com> wrote: > Here is application flow > Index.php = login page, I need to start session here. From here > (successful login) I'm going to admin.php which is > Frameset page with source pages. That's nice.. but doesn't help us. We need to see code. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#234815) next »