473,379 Members | 1,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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


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 1164
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. ?>
Sep 10 '07 #2

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.