471,604 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,604 software developers and data experts.

profilescript?

19
I am working on a community site and i have this problem, I cannot make the login user site private, i already added cookies and now i need this script to make the logIn user private, i want the user to save the his profile ínside the login. So what kinda script should i search for?
Sep 8 '07 #1
1 1137
Any server-side language will work. I prefer PHP which would have a structure like this:

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. if ($_COOKIE['my_cookie_name'] == "proper cookie value for access to this content") {
  3.   //Show content
  4. } else {
  5.   //Show login or page denied.
  6. }
  7. ?>
  8.  
Sep 10 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.