|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
Sponsored Links
|
|
|
|
#2 (permalink) |
|
Senior Googler
![]() |
Assign a cookie when the person logs in, and then check that cookie's contents when they view the page.
If the user has the cookie, with the right content (password, username, whatever), then they can view the page. If not, they get served with a page asking them to log in. |
|
|
|
|
|
#3 (permalink) |
|
Google Guru
![]() Join Date: Jul 2004
Location: India
Posts: 2,399
Thanks: 0
Thanked 1 Time in 1 Post
![]() |
ashes, i forgot i posted a message of welcome to earlier
|
|
|
|
|
|
#6 (permalink) |
|
Google Guru
![]() |
I think I have a solution...
Well, how you will get the cookie writing to work, you decide, but you can write cookies in the following way:-
Code:
<?PHP
setcookie("username",$name);
?>
Code:
<?PHP $_COOKIE['username']; ?> Code:
<?PHP
if(isset($_COOKIE['username'])
{
include "./members.html";
}
else
{
echo "Sorry you are not logged on!";
}
?>
|
|
|
|
|
|
#7 (permalink) |
|
Senior Googler
![]() |
We really shouldn't be coding for you. I'd be glad to help you work out your code and find and fix errors, but I won't write it for you.
If this is something you want to use, then you should either learn the technology or hire someone to do it for you. If you'd like to learn, then this is the documentation for setcookie. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hello to all members | cashblogs | Introduce Yourself | 4 | 11-07-2007 08:57 PM |
| 100 Members | intelliot | GC Announcements | 26 | 01-02-2006 12:09 PM |
| Platinum Members | andrew247 | GC Announcements | 5 | 11-27-2005 10:37 PM |
| Tip for all members ... | DarkMan | Chit Chat | 0 | 09-23-2005 07:32 AM |