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

Thread: sessionstart

  1. #1
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    9
    Thanks
    6
    Thanked 0 Times in 0 Posts

    sessionstart

    Should we use session_start() for(each) every page in php while using....
    I came to know that session_start() can be used only once so that it may be used for all the pages, i worked it by using in all pages if i do that i culd get the session id r else i culdnt get the session id

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    Should we use session_start() for(each) every page in php while using....
    Yes. Or you could make a file, say config.php and add session_start() into it and then include this file at the top of all files where you need to get sessions.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    abarajitha (03-27-2010)


  •  

    Posting Permissions

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