SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2002
    Location
    Chester UK
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Managing Users with PHP Sessions and MySQL Tutorial

    Hello people,

    Just signed up to this forum, and by about 2pm tomorrow you will all be sick and tired of me

    I am fairly new to PHP but have bought a couple of books to help me along the road.

    I stumbled across the Tutorial:Managing User with PHP Sessions and MySQL.

    I have 1 question at the moment:

    How can I make it so that it sets a cookie and that cookie is valid for say, 24hours? I have looked at a few sites but I am still none the wiser about what to include in the script, where to put it, and how to invoke the cookie when the user gets to a certain page. I would like the cookie to remember who the user was and what password they have, then after 24hours they would need to log back in.

    If someone could point me in the right direction, that would be appreciated.

    Cheers

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Welcome to SitePoint...

    For questions about PHP/mySQL, you would be better off asking in the PHP forum. That's where the PHP geeks hang out. I'll move this thread over there for you.

    Good luck
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    SitePoint Evangelist CyberFuture's Avatar
    Join Date
    May 2001
    Location
    San Diego, CA
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check out the setCookie function at PHP.net

  4. #4
    Action! filmfoto's Avatar
    Join Date
    Dec 2001
    Location
    Sweden
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Checkout this link.

    Download the sample chapter, It will tell you all about "Cookies and Session Tracking".




    Good Luck.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2002
    Location
    Chester UK
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks people,

    Thanks for moving the message Creole,

    lets see how I get on

    Don't anyone be holding their breath now


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
  •