my problem is that when I use sessions in the restricted pages
the session_start() seem to reset the form  ( when other filled in data 
is lost) when go back to the form using
Back in the browser.
So I wanted to avoid session_start

How are the good php sites designed ?

regds,
Bibhas




Chris Kay wrote:
> 
> Why not use sessions, store a $loggedin value in a session or cookie
> And check that at the top of each page.. no session = no access
> 
> Hope this helps
> 
> ---------------------------------------------------------
> Chris Kay
> Techex Communications
> Website: www.techex.com.au Email: [EMAIL PROTECTED]
> Telephone: 1300 88 111 2 - Fax: 1300 882 221
> ---------------------------------------------------------
> 
> -----Original Message-----
> From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 26 June 2003 5:14 PM
> To: Sichta Daniel
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] passwd protected page
> 
> how should I pass the logged in user to other pages ?
> In the database at the same time there might be several user
> logged in ?
> 
> Thanks,
> Bibhas
> 
> Sichta Daniel wrote:
> >
> > Hi,
> >
> > You can validate user on login page and sets the flag in database
> table.
> > Then on each page you have to check that flag again ....
> >
> > DS
> >
> > -----Original Message-----
> > From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 26, 2003 8:52 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] passwd protected page
> >
> > Hi,
> >
> > Without using sessions , how can I create
> > passwd protected pages in mysql/php.
> >
> > I need to remember the user from login page and
> > validate this user in other pages.
> >
> > Thanks,
> > Bibhas
> >
> > --
> > 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
> 
> --
> Message protected by MailGuard: e-mail anti-virus, anti-spam and content
> filtering.
> http://www.mailguard.com.au/mg
> 
> --
> 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

Reply via email to