Re: Required pages...
| From: | William Fong | Date: | Tue, 12 Feb 2002 22:52:10 +0000 |
| Subject: | Re: Required pages... | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16877@lists.php.net to get a copy of this message | ||
I am not sure if JavaScript is a really good idea in this case because if
the user has JavaScript turned off, what will happen? I believe the
HTTP_REFERRER is the best. Not sure the exact syntax of that either.
Another question pops up. What will happen now if the user does not log in?
If a session has not been started, it shouldn't be displaying anything (or
redirect to the login page). Sessions is probably the way to go...
HTH
-w
--
William Fong - wfong@mookandblanchard.com
Phone: 626.968.6424 x210 | Fax: 626.968.6877
Wireless #: 805.490.7732 | Wireless E-mail: 8054907732@mobile.att.net
----- Original Message -----
From: "Jonathan Underfoot" <jonathan@underfoot.cc>
To: "jas" <jlgerfen@hotmail.com>
Cc: "[PHP-DB]" <php-db@lists.php.net>
Sent: Tuesday, February 12, 2002 2:21 PM
Subject: Re: [PHP-DB] Required pages...
: Personally, I'm not quite sure what the best way to do it would be. (I
: don't use sessions personally.) But I've noticed recently on certain "less
: than scrupulous" websites that they're using javascript to track down the
: user's last page (to make sure they voted.) You'd have to track down the
: javascript commands on the netscape site, I don't know them offhand. If
: theres a PHP way to do it, I'm unsure of it.
:
: Regards,
:
: -Jonathan
:
:
: ----- Original Message -----
: From: "jas" <jlgerfen@hotmail.com>
: To: <php-db@lists.php.net>
: Sent: Tuesday, February 12, 2002 5:22 AM
: Subject: [PHP-DB] Required pages...
:
:
: > I am wondering if there is a way to force users to come from a certain
: page.
: > For an example I am using a login page which once authenticated allows
: users
: > to change the contents of a web site without knowing alot of code etc.
: What
: > I would like to do is make sure that the content management system will
: not
: > be accessed unless the user logs in. I am certain sessions is the way
to
: go
: > on this, however I am still new enough to not understand exactly how
they
: > work and how to impliment them on a site. I have read a little bit on a
: > tutorial on php.net. If anyone can give me an example of how this could
: be
: > accomplished I would appriciate it.
: > Jas
: >
: >
: >
: > --
: > PHP Database Mailing List (http://www.php.net/)
: > To unsubscribe, visit: http://www.php.net/unsub.php
: >
:
:
: --
: PHP Database Mailing List (http://www.php.net/)
: To unsubscribe, visit: http://www.php.net/unsub.php
: