SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2000
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not a programmer, so I hope I can explain this problem well enough. I have a site that (for sales purposes) needs to have a registration w/ a username and password. All pages on the "inside" (post-login) are dynamic and all on the "outside" (pre-login) are static. We are moving an increasing amount of information to the outside for access by the press etc, but that results in creating new pages (thus making our site even larger!).

    I think my question would be:
    Is there a way to retain the login information (it contains an important ID), while the user moves "inside" and "outside"?

    If this is confusing (and I'm sure it is), please contact me for clarification. Thanks!


  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alisa,

    I think Kevin has covered this in his Part 3 of his PHP/SQL series on the SitePoint mainpage. I believe it involves using hidden fields on each page...

    ------------------
    Chris Bowyer - Programmer in Training
    MyCoding.com: Join our mailing list for launch notification!
    "I'm not an insomniac, I'm a web designer."

  3. #3
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just set a cookie with a name like 'logged_in' in a language like Javascript or even PHP...then it'll stay with them as long as their session doesn't expire (this session length can be changed).

  4. #4
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    d3v has the right idea. Cookies are designed for exactly this purpose.



    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •