You still have to connect to a database every time a script is run, whether it's loaded in a frame or run by itself. If you start a session and save the username and password in it, then you can use that login and password on every other page that you call session_start() on.
---John Holmes... > -----Original Message----- > From: Peter Goggin [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 31, 2002 11:12 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Apache, html, php and global variables > > I am not certain how this helps me, since it appears the data is only > carried to pages called directly from where it is set. The page where the > user logs onto the database does not link to other pages. This is done > from > the top frame of the form. The top frame of the inital page contains the > menu, one option of which is to log onto the data base to start a session. > The user will then select another page from the top form. > > This new page is displayed in the bottom frame of the intial page, and > there > may be futher links within this page on the bottom fram.Generally however > main navigation is from the top frame which remains in place through out. > What I wabt to do is to have the login information available at all times > once the user is logged in, nomattar how the current page is called. > > Is this possible? > > If so how is this done? > > > ----- Original Message ----- > From: "Stuart Dallas" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, June 01, 2002 11:56 AM > Subject: Re: [PHP] Apache, html, php and global variables > > > > On Saturday, June 1, 2002 at 2:42:40 AM, you wrote: > > > Is there any way of caryying the login information from one web page > to > the > > > next in global variables so that the username and password entered in > the > > > login screen is available to all other web pages in the site or do I > have to > > > ask the user to re-enter this information at every screen? > > > > Sessions: http://www.php.net/session > > > > -- > > Stuart > > > > > > -- > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php