Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2007
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to code using sessions in PHP

    Hi,

    Iam new to PHP,I created one login page and one logout page...

    now i want to use session timeout for logout page...........





    please help me hw to code using sessions .............

    plz help........
    Last edited by bharath120; 02-06-2007 at 01:15 PM.

  • #2
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To use sessions on every page, you have to initialize the page with session_start(); otherwise session variables will not be accessible, all that needs to happen to terminate the session is session_destroy(); and array_walk($_SESSION,'unset'); the same with $_COOKIE if you set one.


  •  

    Posting Permissions

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