Results 1 to 6 of 6

Thread: [RESOLVED] Concept of SESSION management

  1. #1

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Resolved [RESOLVED] Concept of SESSION management

    Hi guys...

    I didn't get the idea of session management...

    I mean where does the session data will be stored for the client side ?

    Explanation: When user logins successfully, a new session will be started. Then the session data is either entered into a database or to the SESSION array. That is in server side.

    But what does this client side do ? Stores the sessionid in cookies ?

    Thanks....

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  2. #2
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: Concept of SESSION management

    i'm not quite sure about this either, but this might explain something..
    i believe as long as the browser is open, there is a connection between the server and the client, as soon as the client closes, the session and connection is terminated.
    http://forums.devnetwork.net/viewtopic.php?f=34&t=88006

  3. #3
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Concept of SESSION management

    Quote Originally Posted by Justa Lol View Post
    i believe as long as the browser is open, there is a connection between the server and the client, as soon as the client closes, the session and connection is terminated.
    Yes, because the session identifier is a cookie with an expiration of the browser session.
    Of course a browser can choose to keep the cookie longer, but mainstream browsers don't do this.

    But if cookies are not supported, you need to work on a system that transfers the session identifier along the pages with POST or GET.

    In case you are wondering, serverside, the session data by default is stored in files in the 'tmp' directory.
    This can pose a security issue on shared webhosting, but unless you're dealing with confidential data it's not a hole worth plugging.
    http://phpsec.org/projects/guide/5.html
    Last edited by TheBigB; Dec 16th, 2010 at 08:57 PM.
    Delete it. They just clutter threads anyway.

  4. #4

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Concept of SESSION management

    Thanks guys...

    So, when we store the sessions details in the SESSION variable, will it be automatically passed to the client or we have to do this explicitly to manage the session ?

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  5. #5
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Concept of SESSION management

    Session data never is passed to the client. Only it's identifier.
    Delete it. They just clutter threads anyway.

  6. #6

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Concept of SESSION management

    Quote Originally Posted by TheBigB View Post
    Session data never is passed to the client. Only it's identifier.
    Ok.. Thanks...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

Posting Permissions

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



Click Here to Expand Forum to Full Width