- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    Where does the PHP session stored, either client side or server side?
    Category PHP Interview Questions
    Rating (0.4) By 1787 users
    Added on 8/25/2009
    Views 1802
    Rate it!

    It is stored at server side because PHP is server side scripting language

    It is stored at the server side but a cookie is stored at the client side that contains the session information. Every request sent by the client to the server has that particular cookie with it.

    Posted by: Bharat Shivram    

    Contact Bharat Shivram Contact Bharat Shivram

    Session is stored on server side because how much time page will execute it doesn't depend on client it depends on server. Server decide the session of each page ..thats why session is stored on server side

    Posted by: vinay singh    

    Contact vinay singh Contact vinay singh

    since php is a a server side scripting language the control of starting and ending session is on the server side

    Posted by: dheeraj joshi    

    Contact dheeraj joshi Contact dheeraj joshi

    Session is always stroe at server
    Cookies are always store at client side

    Posted by: Kishor B. Kale    

    Contact Kishor B. Kale Contact Kishor B. Kale

    Session is to store as the server side value
    method $_session start('id');
    and cookie is store the validation of client side

    Posted by: sachin    

    Contact sachin Contact sachin

    PHP session will always stored on server side because PHP is totally server side scripting.

    Posted by: vijayKumar    

    Contact vijayKumar Contact vijayKumar

    is is stored at client side because php is server side scripting language........

    Posted by: pankaj patel    

    Contact pankaj patel Contact pankaj patel

    PHP Session is definitely stored on server. Actually, when a server is serving web pages; it must know to whom it is serving. Because at the same time, multiple request can come to the server. Each request will have different query. How will the server ensure that for a specific query there must be a specific page to be sent to the client?

    So server keep a file with it. We can set the file path where the session is saved in php.ini. Each file has some specific name containing the Session ID as will. This session id is unqiue and will be kept on the server till it expires or destroyed.

    This session id saved on the client side as well. when it communicates with the server they can sync with each other that which client has request to whom server is to server pages.

    Posted by: Ankit Vishwakarma    

    Contact Ankit Vishwakarma Contact Ankit Vishwakarma

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What is the difference between session_register and $_session?
    View Answer
    What is the use of sprintf() function?
    View Answer
    Difference between mysql_connect and mysql_pconnect?
    View Answer
    How do download in php ?
    View Answer
    How can I maintain the count of how many persons have hit my site?

    View Answer
    What is difference between require_once(), require(), include()?
    Because above three function usefully use to call a file in another file.

    View Answer
    If you have to work with dates in the following format: "Tuesday, February 14, 2006 @ 10:39 am", how can you convert them to another format, that is easier to use?

    View Answer
    How do we know browser properties?

    View Answer
    How i will check that user is, logged in or not. i want to make it a function and i want to use in each page and after login i want to go in current page(same page. where i was working)?

    View Answer
    How can i get ip address?

    View Answer
    What is difference between mysql_connect and mysql_pconnect?

    View Answer
    What is the difference between echo and print statement?

    View Answer
    How i can make a chat page in php in simple?

    View Answer
    What is difference between mysql_fetch_array(),mysql_fetch_row() and mysql_fetch_object()
    please insert with example?
    View Answer
    How can I maintain the count of how many persons have hit my site?

    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL PHP Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.015625 Seconds