php sessions

by 3 replies
4
well i solved this. not sure how to delete but thanks for the pms.
#programming #php #sessions
  • Session data is stored on the server. The data that you save by using $ _SESSION is not accessible to the client. The only travel to client and from client to server, is a unique identifier that links the customer with the correct data. So there is no direct way to hack a user session data.

    I am not sure what you think of the hash is not routine, but I suspect that it can improve security. Since most of the data, the greatest risks are those of security created by you. SQL injection, where you can Google is the biggest threat to any other person to use the database. Are simple ways to protect against it.
    • [1] reply
    • Sessions are used to store information that can be used in the application for the duration of the user logs on or run the application. Each time a user visits your site, you can create a session for that user to store information about that user.
  • Hi,

    Here I have mentioned the php functions for delete or destroy the session variables,
    Please find it. I think, these information are very useful for you..

    <?php
    // you have to open the session to be able to modify or remove it
    session_start();

    // or this would remove all the variable in the session
    session_unset();

    //destroy the session
    session_destroy();
    ?>

Next Topics on Trending Feed