17
Jul

PHP Basic


admin
Filed under - Development, PHP
2 Comments so far. Add yours now

What is Difference Between Session And Cookie?

What is Difference Between Inclue And Require?

Any one can tell me..

 

2 Responses


  1. binal@augustinfotech on 13 Aug 2012

    The main difference between cookies and sessions is that cookies are stored in the user’s browser, and sessions are not. This difference determines what each is best used for.
    Ex: https://www.facebook.com/
    This will store login details in browser’s cookie. Login to https://www.facebook.com/ shut down your pc without logout and then start again you will be redirected to home page without asking your login details..

    The include() function generates a warning (but the script will continue execution) while the require() function generates a fatal error (and the script execution will stop after the error).

  2. Pathik Sopariwala on 13 Aug 2012

    The main difference between cookies and sessions is that cookies are stored in the user’s browser, and sessions are not.

    A cookie can keep information in the user’s browser until deleted. If a person has a login and password, this can be set as a cookie in their browser so they do not have to re-login to your website every time they visit. You can store almost anything in a browser cookie. The trouble is that a user can block cookies or delete them at any time.


Leave your comment

You must be logged in to post a comment.

Share IT © 2018. All rights reserved.