Results 1 to 4 of 4

Thread: Where does PHP session stored?

  1. #1
    Join Date
    Apr 2009
    Posts
    67

    Where does PHP session stored?

    I always have one question in my mind when I thought about the session, I cannot make sure whether PHP session stored on client side or server side and how do I come to know where session lies inbetween the work.

  2. #2
    Join Date
    Oct 2008
    Posts
    167

    Re: Where does PHP session stored?

    Session is stored on Server side where as Cookies is stored on client side the cookies are not allowed because of which it automatically reduces sever load again there is one reason which is, PHP Session is used to maintain client's previous state and it's stored on server side. where as if no other user are limited then session is used where load doesn't matter.

  3. #3
    Join Date
    Mar 2008
    Posts
    192

    Re: Where does PHP session stored?

    Client side session is a cookie, either a session cookie (which is only around during the time the instance of the browser that activated the cookie is around) or normal cookie which is info stored on clients computer with can be set to timeout beyond the instance of the browser. Even native PHP session handling uses a cookie if not a query string param. You have to have the session id hash somewhere on the client side. Server Side session is an area the PHP server sets up for each individual connection, and to use them you need to use session_start(); at the top of the php file you want to be able to set and read Session information.

  4. #4
    Join Date
    Oct 2008
    Posts
    161

    Re: Where does PHP session stored?

    It depends whether the session handler is actually set to use cookies. check in the IE cookie store. PHP Session is used to maintain client's previous state and it's stored on server side. Session data is the only kind of data that is safely rests on Server Side and can not be manipulated from the client side. Open internet explorer then on the tools menu go to Internet Options then in the general tab, temporary files section click 'Settings' then 'view files' the physical location is hidden and has a random character string in the pathname.

Similar Threads

  1. Replies: 4
    Last Post: 17-01-2011, 11:14 AM
  2. Replies: 4
    Last Post: 24-12-2010, 07:58 AM
  3. Using stored procedures and stored functions in MySQL
    By Adiran in forum Software Development
    Replies: 6
    Last Post: 14-12-2010, 01:54 AM
  4. Replies: 3
    Last Post: 31-07-2009, 01:09 PM
  5. where the UT3 cd key is stored?
    By Carl Lewis in forum Windows Software
    Replies: 3
    Last Post: 24-06-2009, 10:57 AM

Tags for this Thread

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
  •  
Page generated in 1,713,879,699.73210 seconds with 17 queries