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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Session Problem in PHP

    Why the session expires in the mid of navigation of a site.
    Suggest any efficient way to store the username.
    Any example will be greatly appreciated.

    Also how to reassign the session value when it expires?
    Can we do this using hidden controls? If yes, then how it can be done using hidden control?

  • #2
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    do you have session_start on every page?

    also, you may want to refer to
    http://us2.php.net/manual/en/functio...che-expire.php

    and change this if need be:
    http://us2.php.net/manual/en/ref.ses...n.cache-expire

  • #3
    Regular Coder
    Join Date
    Sep 2005
    Posts
    394
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Also how to reassign the session value when it expires?
    The idea of session cookies is that they don't expire until the end of the session. So, if they are working fully, you shouldn't need to worry about this.

    ~Phil~


  •  

    Posting Permissions

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